Mar
15
2011
Remove the New WordPress 3.1 Admin Bar
I have had to use this little bit of code a few times for multiple clients who didn’t want the new WordPress 3.1 admin bar. All you need to do is add this snippet to your theme’s functions.php and all of the admin bar functionality will be removed:
/* Disable the Admin Bar. */ add_filter( 'show_admin_bar', '__return_false' ); remove_action( 'personal_options', '_admin_bar_preferences' ); |




Thanks a bunch! Saved me some time there…
…or maybe they can just go to Users > Your profile > Hide admin bar?
Sure they can, but that just works for each individual users and some people might want to turn this off for their entire site.
Worked like a dream, thanks.
I see no reason to remove the bar. In opposite, I like this new feature, because it is very convenient.
Thanks so much!! Exactly what I needed.
Works like a charm. This might be the same contained in a plugin but am not sure.
http://wordpress.org/extend/plugins/disable-admin-bar/
Worked perfectly and I am not at all talented on word press. Thanks for the guidance.
Thanks for that, that pesky admin bar has been bugging me, it will be a relief to get it out of sight!
Thank ya! Thank ya!
yes me also thankful.
Whew! Just when I thought I was going to have to live with that admin bar…Thanks a bunch!