Skip to content

trepmal.com

  • Home
  • Plugins
  • Github
  • Me on WP.org
  • Donate

Function: remove_menu

Remove Links From the Admin Bar

If you need to remove an item from the Admin Bar, it turns out that’s pretty easy too.

add_action( 'admin_bar_menu', 'remove_admin_bar_menu', 70 );
function remove_admin_bar_menu( $wp_admin_bar ) {
    $wp_admin_bar->remove_menu( 'widgets' );
}
Posted on April 14, 2011March 1, 2012Categories WordPress BitsTags admin barLeave a comment on Remove Links From the Admin Bar
Proudly powered by WordPress