Created
October 7, 2014 23:52
-
-
Save digisavvy/1590b1751296f60c301e to your computer and use it in GitHub Desktop.
If user has caps
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
if ( current_user_can('moderate_comments') ) { | |
echo 'The current user can moderate comments'; | |
} else { | |
echo 'Well, not everyone has nice hair like Alex!' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment