Jump to content


* * * * * 1 votes

Remove menu items from WordPress 3.3 admin bar

wordpress admin bar

  • Please log in to reply
No replies to this topic

#1 webrobot

webrobot

    Member

  • Members
  • PipPip
  • 20 posts

Posted 07 January 2012 - 04:40 PM

Adding this snippet to the functions.php of your wordpress theme will remove menu items from the wordpress 3.3 admin bar.
function wps_admin_bar() {
	global $wp_admin_bar;
	$wp_admin_bar->remove_menu('wp-logo');
	$wp_admin_bar->remove_menu('about');
	$wp_admin_bar->remove_menu('wporg');
	$wp_admin_bar->remove_menu('documentation');
	$wp_admin_bar->remove_menu('support-forums');
	$wp_admin_bar->remove_menu('feedback');
	$wp_admin_bar->remove_menu('view-site');
}
add_action( 'wp_before_admin_bar_render', 'wps_admin_bar' );






Also tagged with one or more of these keywords: wordpress, admin bar