Disable admin bar from WordPress Site

WordPress by default provide admin bar at the top of the page for logged in users.

By using wordpress filtering and hook system, we can disable the admin bar from wordpress site for logged in user. Here is the snippet which will disable admin bar from wordpress site.

[php]

add_filter(‘show_admin_bar’, ‘__return_false’);

[/php]

Add this filter into your theme’s funtions.php file

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

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