Created
November 1, 2017 01:16
-
-
Save ricardobrg/f06669fdb397c6319942bb8685eacb6f to your computer and use it in GitHub Desktop.
Hide wp bar
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
<?php | |
function hide_admin_bar() { | |
//could check user role here | |
return false; | |
} | |
add_filter( 'show_admin_bar', 'hide_admin_bar' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment