Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove menu tabs from BuddyPress Member Page


  • Kostas Gogas
    Participant

    @kostas-gogas

    I am trying to remove some tabs from Member page.
    (I found how to remove sub items – I was hoping for something similar)
    This What I use to hide sub-nav item:

    function bp_remove_nav_item() {
        global $bp;
    
        bp_core_remove_subnav_item( $bp->profile->slug, 'change-avatar' );
    
    }
    add_action( 'wp', 'bp_remove_nav_item' );
Viewing 2 replies - 1 through 2 (of 2 total)

  • danbp
    Moderator

    @danbp

    hi @kostas-gogas,

    try this:
    bp_core_remove_nav_item( ‘friends’ ); // bp topnav
    bp_core_remove_subnav_item( ‘activity’, ‘friends’ ); //bp subnav (my activities, my groups, etc)
    add_action( ‘bp_ready’,’your function’);

    action hook bp-core-dependency.php:104
    Fire the ‘bp_ready’ action, which runs after BP is set up and the page is about to render.


    Kostas Gogas
    Participant

    @kostas-gogas

    Hi @danbp,
    Thanks for the reply.
    I will try that!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove menu tabs from BuddyPress Member Page’ is closed to new replies.
Skip to toolbar