Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove members from group including their activity


  • BenWorx.nl
    Participant

    @benworxnl

    Hi there!

    Does anyone know how to do the following?

    When removing a member from a group, how can I delete the activity of that specific member in that specific group?

    Many thanx!!

Viewing 2 replies - 1 through 2 (of 2 total)

  • shanebp
    Moderator

    @shanebp

    Use this hook ( from buddypress\bp-groups\classes\class-bp-groups-member.php ) to call a function that deletes the activity:

    do_action_ref_array( 'groups_member_after_remove', array( $this ) );


    BenWorx.nl
    Participant

    @benworxnl

    Hi,
    Can you please give more explanation how n where to do the hook ?

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