Home › Forums › Front End PM PRO › How to link the participants name to their profile? › Reply To: How to link the participants name to their profile?
June 3, 2018 at 9:50 pm
#14663
Shamim Hasan
Keymaster
add following code in your theme’s (child theme’s if any) functions.php
add_filter( 'fep_filter_user_name', function( $name, $id ){
if( isset( $_GET['fepaction'] ) && 'viewmessage' == $_GET['fepaction'] && function_exists( 'um_fetch_user' ) ){
um_fetch_user( $id );
$name = '<a href="' . um_user_profile_url() . '">' . $name . '</a>';
}
return $name;
}, 10, 2);