Posted By

davebowker on 01/12/10


Tagged

wordpress comment user author roles


Versions (?)

WordPress comment styling for specific user levels


 / Published in: PHP
 

  1. <?php if (!empty($comment->user_id) && get_userdata($comment->user_id)->wp_user_level > '1') {
  2. echo "ADMIN";
  3. } else {
  4. echo "REGULAR FOLK";
  5. }?>

Report this snippet  

You need to login to post a comment.