Tips & Tricks

Disable Admin Bar in WordPress

We are getting one admin bar in WordPress website when we are logged in as any user in that particular. This is default feature provided by WordPress team.

We have option to disable that bar in user’s profile but in this quick tip article we will see how we can disable that admin bar for all users regardless of that profile setting.

What you need to do is just paste below code in function.php file of your active theme and you are done.

[cc lang=”php”]
add_filter(‘show_admin_bar’, ‘__return_false’);
[/cc]

You are done!!!!

Shares:

Leave a Reply

Your email address will not be published. Required fields are marked *