Hi Varun,
Thank you for your reply! I am using it but it does not restrict all member activity… which is why I am looking at how to…
request a solution
thanks
@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
Hi Varun,
Thanks, this works… last question – I am using the Followers plugin and Activity Filter. But when I select Followers as the default using Activity Filter – it shows All Members content…
I am trying to implement the Twitter interface:
Updates only from me and the people I follow….
This should be possible right?
please confirm
thank you for your help