activity filter option
-
Hi, Thanks for you’re plugin,
I use this function to remove some activities updatefunction 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' );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘activity filter option’ is closed to new replies.