Want to know what WordPress Theme a site is using? Check Out Now!

How to Disable the Admin Bar in WordPress For All Users?

WordPress comes with an admin bar that houses many key shortcuts including, shortcuts to add a new post, page, media, custom post type, customize the website, access comments, and much more. Many popular plugins like Yoast SEO and Sucuri also add their custom menu to the WordPress admin bar.

Many people find themselves in situations when they need to hide the WordPress admin bar. The following code can be used to hide the admin bar in WordPress.

// Remove the admin bar from the front end
add_filter( 'show_admin_bar', '__return_false' );

Leave a Reply

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