Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 1 replies (of 1 total)

  • wommso
    Participant

    @wommso

    Hello @shanebp! I need your help with this

    I have been trying to add a filter to my member´s profile page, but nothing I have done seems to work,

    I used this code for my members´s activity page..

    function pauld_bp_get_activity_show_filters_options( $filters, $context ) {

    if ( ‘activity’ == $context ) {

    $remove_these = array(‘Friendships’, ‘New Members’);

    foreach ( $filters as $key => $val ) {

    if ( in_array( $val, $remove_these ) )
    unset( $filters[ $key ] );

    }
    }

    return $filters;
    };
    add_filter( ‘bp_get_activity_show_filters_options’, ‘pauld_bp_get_activity_show_fi

    …and it works just fine with it,

    I don´t know exactly what I need to change or add to make it work for my member´s profile page.

    thanks in advance for your help

Viewing 1 replies (of 1 total)
Skip to toolbar