Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_core_add_subnav_item()?


  • Debora1976
    Participant

    @debora1976

    Hi,

    On my own profile page I can see my favorite forums and favorite forumtopics, but on the profiles of other members only the favorite topics are shown.
    How can I show both in the subnav?

    Kind regards,
    Debby

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

  • Debora1976
    Participant

    @debora1976

    Or better: how can I hide favorite forums and favorite topics for other members, and make it visible only for myself?


    Debora1976
    Participant

    @debora1976

    Solved it:
    function bpex_hide_profile_menu_tabs() {

    if( bp_is_active( ‘xprofile’ ) ) :

    if ( !bp_is_my_profile() ) {

    bp_core_remove_subnav_item( ‘forums’, ‘favorites’ );
    bp_core_remove_subnav_item( ‘forums’, ‘subscriptions’ );

    }
    endif;
    }
    add_action( ‘bp_setup_nav’, ‘bpex_hide_profile_menu_tabs’, 15 );

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar