Disable the WordPress Admin Bar

There may be scenarios where you will not want your users to see the WordPress admin bar, with this small snippet you can disable the WordPress admin bar from appearing on the front end of your website.

// Disable the WordPress admin bar from public view
add_filter( 'show_admin_bar', '__return_false' );

– LAST TESTED DECEMBER 9, 2019

Code not working? Let us know in the comments below.

Latest Snippets

Leave a comment