Hello Guest, if you read this, it means you are not registered. Click here to register a few simple steps, you will enjoy all the features of our Forum. Please note that nicknames are prohibited lewd or meaningless (no numbers or letters at random) and introduce yourself in the section for you to meet our community.
How to disable wordpress toolbar for all users - Blogs - GOZEN Host Forums
View RSS Feed

GOZEN Host blogs

How to disable wordpress toolbar for all users

Rating: 4 votes, 4.75 average.
by , 04-29-2012 at 06:44 AM (1919 Views)
The new WordPress engine has a feature called toolbar and everyone can see that at the top of the blog page.
The only problem with this is if someone wants to disable this toolbar there's no built-in function to do that. The only way that this can be disabled is if a user configures that in his profile.
Here's a tip using a small snippet of code if you need to disable this toolbar for all your users.

Add this snippet to your theme functions.php file

PHP Code:
function my_function_admin_bar(){
    return 
false;
}
add_filter'show_admin_bar' 'my_function_admin_bar'); 

Submit "How to disable wordpress toolbar for all users" to Digg Submit "How to disable wordpress toolbar for all users" to del.icio.us Submit "How to disable wordpress toolbar for all users" to StumbleUpon Submit "How to disable wordpress toolbar for all users" to Twitter

Updated 01-17-2013 at 10:38 PM by GOZEN

Categories
Web Development