Conversation
review · 5 starsHi, Thanks for you’re plugin, I use this function to remove some activities update function bpfr_activity_types( $retval ) { // comment line to disable optiopns $retval['action'] = array( 'activity_comment', 'activity_update', 'created_group', 'friendship_created', 'joined_group', 'last_activity', //'new_avatar', 'new_blog_comment', 'new_blog_post', //'new_member', 'updated_profile' ); return $retval; } add_filter( 'bp_after_has_activities_parse_args', 'bpfr_activity_types' ); but all shared activities disappears, to show shared activities it’s necessary to add ‘bp_activity_share’ to the function, it’s the plugin option. like that function bpfr_activity_types( $retval ) { // comment line to disable optiopns $retval['action'] = array( 'activity_comment', 'activity_update', 'created_group', 'friendship_created', 'joined_group', 'last_activity', //'new_avatar', 'new_blog_comment', 'new_blog_post', //'new_member', 'updated_profile' 'bp_activity_share' ); return $retval; } add_filter( 'bp_after_has_activities_parse_args', 'bpfr_activity_types' );
Hi @vidjaylee, Thank you very much for giving 5-star ratings to this plugin and this code, it’ll definitely help others in the community. 🙂
Hi @vidjaylee, Thank you very much for giving 5-star ratings to this plugin and this code, it’ll definitely help others in the community. 🙂