Reply To: How to link the participants name to their profile?


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?

#14663
shamim
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);