WordPress

Hide Admin Bar

There are a few ways we can hide the WordPress Admin Bar.

Let me show you how!

1. Manually, via user profile page

We can do it manually by unchecking the “Show Toolbar when viewing site” checkbox.

Hide Admin Bar via User Profile Page

2. Via code snippet

Here’s how you can achieve this via code. You should put his code in your functions.php file.

           
add_filter('show_admin_bar', '__return_false');           
    
Did you like this WordPress code snippet? Share it with your friends: