Disable the WordPress Admin bar without a plugin

Does the Admin bar in WP 3.x annoy you as well? Yeah, us too.

Place the code below in your theme’s functions.php file and say goodbye to the Admin bar. This will not only disable the bar for any users, it also removes the preferences option in WordPress’ Admin area.

/* Disable the Admin Bar. */
add_filter( 'show_admin_bar', '__return_false' );
remove_action( 'personal_options', '_admin_bar_preferences' );

No Comments

Leave a Reply

To include code, just include it in [code] [/code] square brackets. Sweet.