Home › Forums › Front End PM PRO › Message Renumbering after Update › Reply To: Message Renumbering after Update
August 29, 2018 at 1:38 am
#16983
Shamim Hasan
Keymaster
Use
add_action( 'fep_display_after_message', function(){
$authordata = get_userdata( fep_get_message_field( 'mgs_author' ) );
if( in_array( 'business', $authordata->roles ) ){
echo '<div id="businesslink">See more information and photos of <a href="' . esc_url( home_url( '/' ) ). $authordata->user_nicename . '">' . $authordata->display_name . '</a>.</div>';
}
});