Hello,
Until recently I used to use the feature below to hide admin activity, but suddenly it stopped working. Do you know what it could be?/**
//BuddyPress admin Actvity Disable
*/
add_filter( ‘bp_after_has_activities_parse_args’, function( $args ) {if ( ! bp_is_activity_directory() ) {
return $args;
}$args[‘filter_query’][] = array(
‘column’ => ‘user_id’,
‘value’ => ‘1,2’, // Replace by your user ids.
‘compare’ => ‘NOT IN’,
);return $args;
} );Thank you
RegardsHi,
Thank you for the question.Please share your BuddyPress version and any changes you have made recently.
Thank you
BrajeshSo I found out that Admin activity is not displayed, but only imported products, i.e. products that have been imported into Woocommerce are displayed.
Is it possible to cancel not to show products that have been added to Woocommerce in the activities?Thank you
Hi yuriix,
It is good to know that the code is working.I am sorry, The activity shortcode does not have anything to do with the WooCommerce products. Are you using any integration for recording activity of Woo products?
I will suggest disabling some of your addons and testing it.
Regards
Brajesh
The topic ‘ [Resolved] BuddyPress admin Actvity hide’ is closed to new replies.