Disable Admin Bar in WordPress

  • Avinash
  • 0
  • Mar 03, 2013
  • Tips & Tricks

We are getting one admin bar in WordPress website when we are logged in as any user in that particular. This is default feature provided by WordPress team.

We have option to disable that bar in user’s profile but in this quick tip article we will see how we can disable that admin bar for all users regardless of that profile setting.

What you need to do is just paste below code in function.php file of your active theme and you are done.

add_filter('show_admin_bar', '__return_false');
add_filter('show_admin_bar', '__return_false');

You are done!!!!

Related Posts

Written by Avinash

Avinash Zala currently working at a leading web development company as a Sr. PHP Web Developer. He is the founder of the Xpert Developer. He has completed B.E. in Information Technology. Born and brought up in Ahmedabad. He loves to code and coding is all about passion for him. Follow him on twitter at Avinash Zala & Xpert Developer.

View all posts by: