Skip to:
Content
Pages
Categories
Search
Top
Bottom

Group member ban and unbanned action hooks


  • wpexpertz
    Participant

    @wpexpertz

    Hi, Hope you are doing well

    We are making the compatibility of buddyPress with our premium themes and we are adding some functionality while member is banned or unbanned. Upon both calls as well as on accept group invite one function is being triggered which is

    public function save() {}
    
    under the class class BP_Groups_Member{}
    

    and below functions are not being used anywhere

    groups_ban_member()
    groups_unban_member()
    

    How we can differentiate either request is for ban or accept invitation? Is there any specific hook that can only be used for the group member ban or unbanned?

    Thank you

Viewing 1 replies (of 1 total)

  • kayart
    Participant

    @kayart

    The groups_unban_member hook fires before the unbanning of a member from a group and the the groups_ban_member hook fires before the banning of a member from a group.

    Both hooks are defined in the bp-groups/bp-groups-functions.php file.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar