Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide My Account Menu


  • bhappy
    Participant

    @bhappy

    is there anyway to hide the Buddypress “My Account” menu from users so I can create only the ones I want to display on my own menubar???

Viewing 1 replies (of 1 total)

  • hughshields
    Participant

    @hughshields

    The name of the menu is ‘my-account-buddypress’. This is a buddypress menu and therefore you cannot find it in the wordpress adminbar.php file. It is added when you installed buddypress. You can remove it by adding the following to your theme’s functions.php file:

    function remove_bp_adminbar() {
    global $wp_admin_bar;
    $wp_admin_bar->remove_menu(‘my-account-buddypress’);
    }
    add_action( ‘wp_before_admin_bar_render’, ‘remove_bp_adminbar’ );

    If someone knows the names of the submenus in this buddypress menu I would like to know them so that I can remove the redundant ones (media, forms, friends etc).

Viewing 1 replies (of 1 total)
  • The topic ‘Hide My Account Menu’ is closed to new replies.
Skip to toolbar