Every time I create a new site under 3.1, my first trip is to the Users > Admin User profile page to uncheck the “admin bar” checkbox.
I’d like to place a script in my theme’s functions.php to do this automatically.
Anyone know what that would be?
Every time I create a new site under 3.1, my first trip is to the Users > Admin User profile page to uncheck the “admin bar” checkbox.
I’d like to place a script in my theme’s functions.php to do this automatically.
Anyone know what that would be?
You must be logged in to post a comment.
You could use a function inside your theme’s functions file to selectively disable it for specific users.
Then call it for the user or users you want to disable the bar for..
Single user:
Multiple users:
If you want to just turn it off altogether, then the following should do it(instead of the function).
Hope that helps.. 🙂
For functions.php:
I believe you can activate such a plugin sitewide – http://wordpress.org/extend/plugins/disable-admin-bar/
Simply set
show_admin_bar
filter to false in your functions.php.