Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: add custom link under author link in replies

@andrew55

Participant

Got it! This seems to work:

<?php
$reply_user_id = bbp_get_reply_author_id();
global $wp_roles;
$reply_user = new WP_User( $reply_user_id );
$roles = $reply_user->roles;
$role = array_shift($roles);
if  ($role == 'graduate' ){
echo "<a href='http://www.mysite.com/page2/'>Graduate</a>";
}
?>
Skip to toolbar