Created
November 26, 2012 06:45
-
-
Save tobedoit/4146899 to your computer and use it in GitHub Desktop.
Wordpress: disable admin bar from subscriber
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 Admin Bar for all users ***************************************************************** | |
** http://www.onextrapixel.com/2012/02/24/taking-control-of-wordpress-3-0-admin-bar/ ************ */ | |
/* !일반회원 어드민 바 제거 ************************************************************************** */ | |
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