How To Remove WordPress Admin Bar For Everyone Except Administrators

In last post I showed you how to remove WordPress admin bar from your WordPress site. Now, it’s time to show how you can remove the WordPress admin bar for everyone except administrators of your WordPress. In this way, only you will see the admin bar in the front-end. I personally applied this code on this website.

This is something you would like to add on your client’s WordPress website.

Just add following code to your theme’s functions.php file to remove the admin bar: