Snippets, WordPress

Disable wpadminbar in WordPress (no plugin)

If you wish to disable wpadminbar in WordPress 3.1+ for a specific theme, just add the following line of code into functions.php file of your theme. No plugin installation required.


add_action( 'show_admin_bar', '__return_false' );

Twitter
LinkedIn
YouTube
Instagram