Created
July 31, 2013 15:05
-
-
Save adamstac/6122777 to your computer and use it in GitHub Desktop.
Hide WordPress toolbar for non-admins
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 | |
// | |
// Hide WordPress toolbar for non-admins | |
// | |
if ( !current_user_can('administrator') ) { | |
show_admin_bar(false); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment