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


Home Forums Front End PM PRO How to link the participants name and their avatar to their profile? Reply To: How to link the participants name and their avatar to their profile?

#39228
shamim
Keymaster

add following code in your theme’s (child theme’s if you are using) functions.php

add_filter( 'fep_filter_user_name', function( $name, $id ){
	if ( $name && fep_get_the_id() ) {
		$name = '<a href="https://yoursite.com/'. fep_get_userdata( $id, 'user_nicename', 'id' ) . '/">' . $name . '</a>';
	}
	return $name;
}, 10, 2);