Last active
May 8, 2018 09:51
-
-
Save CNick/b0677be3167168faab20fdc9ecba90c8 to your computer and use it in GitHub Desktop.
Some email clients do not work well with angled brackets around links - which is the default format. This snippet will add another link to the password reset email without the angled brackets.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fix_password_reset_link($message, $key, $user_login, $user_data) { | |
$message .= "\r\nLink not working? Copy and paste the following into your browser address bar:\r\n\r\n"; | |
$message .= network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login'); | |
return $message; | |
} | |
add_filter( 'retrieve_password_message', 'fix_password_reset_link', 10, 4); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment