Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • craighamilton
    Participant

    @craighamilton

    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;
    } );


    craighamilton
    Participant

    @craighamilton

    I have found out that when you purge the cache. It can make the plugin malfunction. Litespeed is not the best out there.

Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar