• Resolved ruferryman

    (@ruferryman)


    Hi all. Please tell me how to get the name of the user’s role in the comments? Ultimate Member 1.3.88.

    • This topic was modified 7 years, 2 months ago by ruferryman.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi,

    You can try the following code in your customisation:

    
    $comment_author_ID = 2;
    um_fetch_user( $comment_author_ID );
    
    echo um_user("role"); //prints the comment author's UM role.
    

    Regards,

    • This reply was modified 7 years, 2 months ago by Champ Camba.
    Thread Starter ruferryman

    (@ruferryman)

    Thank you very much, this is what you need!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘User role in comments’ is closed to new replies.