I have a php template file created by this Front End Reset Password plugins. Here is original part of the template I would like to acheive:
$reset_url = som_get_lost_password_url() . "?somresetpass=true&action=rp&key=$key&login=" . rawurlencode($user_login);
$message = __( 'Someone requested that the password be reset for the following account:', 'frontend-reset-password' ) . "<br><br>";
$message .= sprintf( __( 'Username: %s', 'frontend-reset-password' ), $user_login ) . "<br><br>";
$message .= home_url( '/' ) . "<br><br>";
$message .= __( 'If this was a mistake, just ignore this email and nothing will happen.', 'frontend-reset-password' ) . "<br><br>";
$message .= __( 'To reset your password, visit the following address:', 'frontend-reset-password' ) . "<br><br>";
//$message .= network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . "\r\n";
// replace PAGE_ID with reset page ID $_GET['somresetpass']
$message .= $reset_url;
Here is what I try to achieve:
$reset_url = som_get_lost_password_url() . "?somresetpass=true&action=rp&key=$key&login=" . rawurlencode($user_login);
$message = __( 'Someone requested that the password be reset for the following account:', 'frontend-reset-password' ) . "<br><br>";
$message .= sprintf( __( 'Username: %s', 'frontend-reset-password' ), $user_login ) . "<br><br>";
$message .= home_url( '/' ) . "<br><br>";
$message .= __( 'If this was a mistake, just ignore this email and nothing will happen.', 'frontend-reset-password' ) . "<br><br>";
$message .= __( 'To reset your password, visit the following address:', 'frontend-reset-password' ) . "<br><br>";
//$message .= network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . "\r\n";
// replace PAGE_ID with reset page ID $_GET['somresetpass']
$message .= sprintf(__( '<a href="$reset_url">Reset Your Password</a>', 'frontend-reset-password' ) );
I have change the last line to make it URL, but it is not clickable in an email when this message is sent to users after they submit a Password Reset form.
How can I make it clickable in an email?