I’m trying to add a column to bbPress 2.x that lists the last person to reply to a topic and adds a specific class to the
Here’s the code that gets the ID:
$reply_author_id = bbp_get_reply_author_id( array( 'post_id' => bbp_get_topic_last_active_id() ) );
How can I get their bbPress role based on that ID?
Thanks
Use
bbp_get_user_role()
so with your code in mind, this should do the trick. (Source)$role = bbp_get_user_role( $reply_author_id );