Get User's WordPress Role
-
Hi all,
I have a little issue since bbPress switched to its own user roles. I was previously showing an image under a users avatar based on this role (ie admin, subscriber).
With the new method, it just shows the bbPress role of participant or key master. This is a problem because my registration forms put the user in WordPress role.
My question is this: is there a way to output the WordPress role rather than the bbPress role? Here is what I’m using at the moment:
$role = bbp_get_user_display_role(bbp_get_reply_author_id($reply_id));
<div class="bbp-reply-author <?php echo $role; ?>">
Any help is greatly appreciated!
- You must be logged in to reply to this topic.