Title: display admin if is admin
Last modified: August 21, 2016

---

# display admin if is admin

 *  [Chumlee](https://wordpress.org/support/users/chumlee/)
 * (@chumlee)
 * [13 years ago](https://wordpress.org/support/topic/display-admin-if-is-admin/)
 * I didnt know what to do.. post or not.. I’ve seen other threads not being responded
   and that you are inactive for about a year.. but trying my luck over here.. So
 *     ```
       if (current_user_can( 'manage_options' )) {
       echo 'admin'
       }
       elseif (current_user_can( 'moderate_comments' )) {
       echo 'moderator'
       }
       endif return $rank
       ```
   
 * how would I implement this or something close to it in your plugin… to display
   if admin – admin ( and forget about the rank ) .. and moderator ..
    Thanks
 * [http://wordpress.org/extend/plugins/simple-user-rank-comments/](http://wordpress.org/extend/plugins/simple-user-rank-comments/)

The topic ‘display admin if is admin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-user-rank-comments.svg)
 * [Simple User Rank Comments](https://wordpress.org/plugins/simple-user-rank-comments/)
 * [Support Threads](https://wordpress.org/support/plugin/simple-user-rank-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-user-rank-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-user-rank-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-user-rank-comments/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Chumlee](https://wordpress.org/support/users/chumlee/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/display-admin-if-is-admin/)
 * Status: not resolved