digisavvy
10/7/2014 - 11:52 PM

If user has caps

If user has caps

if ( current_user_can('moderate_comments') ) {
 echo 'The current user can moderate comments';
} else {
  echo 'Well, not everyone has nice hair like Alex!'
}