Tag Archives: Toolbar

How to disable wordpress toolbar for all users

New wordpress engine has a feature called toolbar and its shown in the top of our blog page. What ridiculous is there’s no built-in function to disable this toolbar for being shown to all our users, which mean the users have to manually disable it in their profile page. Fortunately we can use this snippet to disable this toolbar.

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');