WordPress by default will output an admin bar for any logged in user on the frontend of your website.

While this is helpful in some instances, I much prefer to have my frontend reflect what visitors will see – with no interruptions.

Fortunately, WordPress have a simple filter to remove the bar. Add the snippet below into your functions.php as-is to remove the admin bar for all user types, or wrap it in a user type statement to only hide it for select user types.

add_filter('show_admin_bar', '__return_false');

Hope this helps someone hide the wp admin bar, enjoy!