Created
November 3, 2011 17:37
-
-
Save brendannee/1337146 to your computer and use it in GitHub Desktop.
Disable the Wordpress Admin Bar for all but admins
This file contains 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
/* Disable the Wordpress Admin Bar for all but admins. */ | |
if (!current_user_can('administrator')): | |
show_admin_bar(false); | |
endif; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment