Created
June 24, 2013 20:30
-
-
Save makbeta/5853348 to your computer and use it in GitHub Desktop.
WordPress: Disable admin toolbar for all subscribers
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 | |
/* Place the following piece of code in (init function of) your functions.php */ | |
if(current_user_can('subscriber')) { | |
show_admin_bar(false); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment