• Add-ons & Themes
  • Blog
  • Account
    • My account
    • Checkout
    • Cart
  • Add-ons & Themes
  • Blog
  • Account
    • My account
    • Checkout
    • Cart
home/Knowledge Base/Code snippets/Remove the WP Customer Area menu from the WordPress admin bar

Remove the WP Customer Area menu from the WordPress admin bar

2 views 0 April 13, 2021 vprat

In case you have too many menu items in your top admin bar, you can remove the one created by WP Customer Area easily:

function my_edit_toolbar($wp_toolbar) {
    $wp_toolbar->remove_node('customer-area');
}

add_action('admin_bar_menu', 'my_edit_toolbar', 999);

Was this helpful?

Yes  No
Related Articles
  • Automatically add a user to a group
  • Changing the default page shown by the Customer Area
  • Changing the page shown after logout
  • Sidebars: how to disable them
  • Detect if you are on a page in the customer area
  • Insert the navigation menu in your WP Customer Area theme
  • Terms and conditions for sales
  • Refund policy
  • Privacy Policy
  • Legal notices
  • Copyright 2021 wp-customerarea.com. All Rights Reserved.