If you have a WordPress site with lots of users or you want to see your site as it looks for everyone else on the web, you probably want to remove the WordPress admin bar. There are plenty of legitimate reasons for doing this, and frankly, we feel it’s something that should be available within the WordPress dashboard.
Removing the admin bar is also important if you have a membership-driven WordPress website. And even more so if you have multiple levels of users.
Remove the admin bar for everyone
Removing the admin bar for everyone is the simplest solution since as a WordPress administrator you have access to the dashboard anyway. Add this line to your functions.php file or inside a plugin:
It's that simple!
Remove the admin bar for everyone apart from administrators
As an administrator, you may want to see the admin bar while logged in but hide it for everyone else. Again, add this block of code to either your functions.php file or within a plugin: