WordPress show to authors and above


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php get_currentuserinfo() ;
  2. global $user_level;
  3. if ($user_level > 1) {
  4. echo "AUTHORS AND ABOVE SEE THIS";
  5. } else {
  6. echo "NORMALS SEE THIS";
  7. }
  8. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.