Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide My Account Menu

  • Avatar of bhappy
    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)
  • Avatar of hughshields
    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)

You must be logged in to reply to this topic.