Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Buddypress SiteWideActivity Updates Only

@vapvarun

Participant

@madhall If you want that activity should not be created at all even at the database.
You can try following inside child theme functions.php

function wb_exclude_activity_types_from_recording( &$activity ) {

    $excluded_types = array( 'joined_group', 'updated_profile'.'friendship_created' );
 
    if ( empty( $activity->id ) && in_array( $activity->type , $excluded_types ) ) {
        $activity->type = '';
    }
 
}
add_action( 'bp_activity_before_save', 'wb_exclude_activity_types_from_recording' );

As per the Activity Filter plugin, it only hides them with bp_ajax_querystring, all activity type still get recorded inside the database. You can also check it’s live working here https://www.youtube.com/watch?v=fTwzSN1y61o

Skip to toolbar