Remove the WP Admin bar from the front end

Disable the WordPress admin bar from the front end by adding this snippet to your theme’s (child) functions.php file. or by using the Code Snippets plugin.

// Remove the WP Admin Bar from the front end
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