@craighamilton
5 years ago
Try using this filtering structure.
add_filter( ‘bp_before_has_activities_parse_args’, function( $args ) {
if(bp_is_current_action( ‘groups’ )) {
$args[‘object’] = array(‘groups’);
} else { $filter_query = array( array( ‘column’ => ‘type’, ‘value’ => array( ‘group_action_1’, ‘group_action_etc’ ), ‘compare’ => ‘NOT IN’, ), );
$args[‘filter_query’] = $filter_query; }
return $args; } );
I have found out that when you purge the cache. It can make the plugin malfunction. Litespeed is not the best out there.