How to disable WordPress toolbar
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
function my_function_admin_bar(){ return false; } add_filter( 'show_admin_bar' , 'my_function_admin_bar');
Leave a Reply