Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: ADD custom HTML in keymaster reply

@robin-w

Moderator

ok, sorry for delay – putting in ‘bumps’ tends to not get you help as many of us work on ‘topics with no replies’ and you have replies 🙂

Put the following in your functions file

function rew_role_show () {
$displayed_user = bbp_get_reply_author_id() ;
$role = bbp_get_user_role( $displayed_user);
if ( bbp_is_user_keymaster($displayed_user) ||$role == 'bbp_moderator')  {
echo '<li>' ; 
echo 'I im in supporting group';
echo '</li>' ;
}
}

add_action ('bbp_theme_after_reply_author_details', 'rew_role_show') ;
	

Functions files and child themes – explained !

Skip to toolbar