Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • pauldixonuk
    Participant

    @pauldixonuk

    That’s fantastic @shanebp – thanks so much for posting that! One quick question – what do the numbers at the end (20, 2) relate to?

    pauld_bp_get_activity_show_filters_options', 20, 2 );


    pauldixonuk
    Participant

    @pauldixonuk

    Thanks @shanebp – is there any chance you (or anyone) could please provide a more specific example of how to remove Friendships & New Members from the menu?

    I’ve looked over the link provided but I’ll be honest I’m struggling to make much sense of it. I tried adding the following to my functions.php as a starting point but I suspect I’m a long way off getting it to do what I want:

    // define the bp_get_activity_show_filters_options callback 
    function filter_bp_get_activity_show_filters_options( $filters, $context ) { 
        // make filter magic happen here... 
        return $filters; 
    }; 
    
    // remove the filter 
    remove_filter( 'bp_get_activity_show_filters_options', 'filter_bp_get_activity_show_filters_options', 10, 2 ); 
Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar