search ]

Hide the Admin Bar for Logged-In Users in WordPress

A very annoying setting – WordPress displays the admin bar to all users logged into the site with their wordpress.com account. To remove the admin bar, add the following line to your functions.php file:

add_filter('show_admin_bar', '__return_false');

This uses a WordPress filter. Learn more about hooks in WordPress Hooks Explained.

Join the Discussion
0 Comments  ]

Leave a Comment

To add code, use the buttons below. For instance, click the PHP button to insert PHP code within the shortcode. If you notice any typos, please let us know!

Savvy WordPress Development official logo