Skip to:
Content
Pages
Categories
Search
Top
Bottom

Turn off Notification Post created when a new user joins the group


  • kemmieg
    Participant

    @kemmieg

    Is there an easy way to turn off the post that is created in the group activity feed that says when a new user joins the group? Everything I’ve found doesn’t do what I would like or it’s well over 5 years old.

    I just want the activity feed to exclude when new members join. We have over 3,000 members and that feed gets really long when those posts are included.

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

  • kemmieg
    Participant

    @kemmieg

    I found the function to make this work but I don’t know how to exclude the updated profile

    function bp_plugin_dont_save_minis( $activity_object ) {
        // friendship_created is fired when a member accepts a friend request
        // joined_group is fired when a member joins a group.
        $exclude = array( 'friendship_created', 'joined_group');
     
        // if the activity type is empty, it stops BuddyPress BP_Activity_Activity::save() function
        if( in_array( $activity_object->type, $exclude ) )
            $activity_object->type = false;
     
    }
     
    add_action('bp_activity_before_save', 'bp_plugin_dont_save_minis', 10, 1 );

    mauvintage
    Participant

    @mauvintage

    I’m also interested, I would like to remove all notifications when he changes photo when he changes poster when he joins a group etc etc. It would be great to be able to manage this directly from the buddypress settings and I honestly can’t understand how they haven’t thought of this before.

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