Hi,
How can I make the "Welcome, Username" message into a link to the user's profile? I've been looking at this section in class-theme-my-login-template.php:
* Returns action title
*
* @since 6.0
* @access public
*
* @param string $action The action to retrieve. Defaults to current action.
* @return string Title of $action
*/
function get_title( $action = '' ) {
if ( is_user_logged_in() ) {
$user = wp_get_current_user();
$title = sprintf( __( 'Welcome, %s', 'theme-my-login' ), $user->display_name );
} else {
switch ( $action ) {
case 'register':
$title = __( 'Register', 'theme-my-login' );
break;
case 'lostpassword':
case 'retrievepassword':
case 'resetpass':
case 'rp':
$title = __( 'Lost Password', 'theme-my-login' );
break;
}
}
return apply_filters( 'tml_title', $title, $action );
}
and I use the permalink /profile/ for the user profiles.
Thanks in advance for your help!