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.


add_filter(‘show_admin_bar’, ‘__return_false’);


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

Author: Dheeraj Dhawan

I'm a web developer / PHP programmer. I am also working on custom plugin development of wordpress.

Leave a Reply

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