Last active
December 28, 2015 06:39
-
-
Save aderaaij/7459148 to your computer and use it in GitHub Desktop.
Hide admin-bar from front-end (add to functions.php)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hide_admin_bar_from_front_end(){ | |
if (is_blog_admin()) { | |
return true; | |
} | |
return false; | |
} | |
add_filter( 'show_admin_bar', 'hide_admin_bar_from_front_end'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment