Back WordPress

Hide WordPress Admin bar in frontend

WRITTEN BY ON 11 May 2014
3,857 VIEWS • SHARES
0 comments

I don't like admin bar being shown when logged in and viewing the site. So, this is how to hide it with filter. Put this to your functions.php.

add_filter('show_admin_bar', '__return_false');
Join the discussion

Comments will be moderated and rel="nofollow" will be added to all links. You can wrap your coding with [code][/code] to make use of built-in syntax highlighter.