You can hook retrieve_password_message (code):
/**
* Filters the message body of the password reset mail.
*
* If the filtered message is empty, the password reset email will not be sent.
*
* @param string $message Default mail message.
* @param string $key The activation key.
* @param string $user_login The username for the user.
* @param WP_User $user_data WP_User object.
*/
Make the web API call from your filter handler and then return an empty message so no email is sent.
As above, the activation key and user login are passed to the filter as parameters and you can get the user’s email address from the WP_User object, $user_data->user_email.
Related Posts:
- wordpress redirect after password reset
- Force all users in MU to change their passwords
- Reseting admin password through PHPMyadmin fails
- Check Password Reset Key Not Woking
- Reset password – set minimum length for new password
- Password reset message – change the network_home_url( ‘/’ )
- Lost password link is redirecting to /shop/my-account/lost-password/
- password recovery key is invalid on custom reset
- Send password to user instead of reset password link
- How to change “Reset Password” text on submit button
- Customize retrieve password message
- How to initiate password reset flow by code
- WooCommerce Lost Password reset goes to 404
- I have to reset the admin password each time
- Problem with login / reset password links in users emails
- How to set password from frontend if have activation key and user login in url in wordpress?
- mysql update user’s password and activation key
- Reset Password – change from name and email address. It stucks at admin. Want to change it to info
- How to Disable Pre-population of Password on Password Reset
- Check for correct username on custom login form
- Missing URL in password reset email
- Loosen/disable password policy
- Password protecting a page
- How to save Admin FTP password
- Bypass password protected posts via GET variable
- Why do generated passwords start/end with spaces?
- Duplicate hash method for password in .NET
- WooCommerce changes lost password reset link
- Hide password protected posts
- Safe to store SMTP password in wp-config.php?
- Access code/password only restricts page access, no user registration..?
- PasswordHash not found in namespace
- Forgot password not working
- WordPress: force users to change password on first login
- Can’t login to wordpress despite changing password to something known directly in MySQL or using “Password Reset by Email” feature
- Lost password link redirects to my-account/lost-password/,how to fix it back to default lost password
- Password protect custom template
- Set content type to HTML for lost password email only
- Custom password generator for users
- Where is the reset password key stored/generated?
- How validate usernames/passwords against WP’s database?
- Make post password required to publish
- Add error message on password protected pages
- User password field is empty
- Password reset bug? – “Sorry, that key does not appear to be valid”
- How to change the language of the ‘Reset Password’ page
- Get plain password on register
- How to customize reset_url or $reset_url
- post_password_required() not recognizing cookie set with correct password
- Password protect the site (without htaccess or membership)
- I would like to password protect my entire WordPress site (ip validated), except for one page
- Password protection for page template
- how to remotely check a username / password from within a plugin
- Forgot Password/ Password Reset Page does not exist
- Password changed [duplicate]
- Adding parameters to password reset key
- How to limit the number of forgot password reset attempts in WordPress?
- Custom password form allows unlock two posts with the same password
- Protect Passwords in wp_users with stronger protection than MD5
- Custom form for password protected page
- How secure is a wp-config file?
- How to recover password from a user
- Woocommerce password Reset
- Redirecting to a custom forgot password page
- How to show my wordpress admin username & password?
- Can’t alter $lostpassword_url
- current user’s password check
- lostpassword_redirect filter is not used
- Ask logged in user to re-enter password to access page “x”
- Password Protect or IP to access under development WordPress site otherwise shown a placeholder page
- Password protected sites
- Password-protected page redirecting to frontpage when I enter the password
- 2 accounts under same email preventing me from loging in
- Site only for users authenticated by different PHP application
- I need help with wp_lostpassword, wp_register and wp_login_form
- Automatically change the page password for more than one page
- Reset WordPress admin users to limit access
- I can’t recover my password
- Frontend custom forgot password page
- Cannot get function.php code to work to remove Lost Password link on live site
- WordPress password reset not working
- Function called by password_reset action passed only 1 argument instead of 2 in PHP 7.2.11
- Allow users from my ASP.Net MVC site to access my private WordPress site
- WordPress Protected Page Redirects to PDF
- Custom page password recovery
- Can I use core passworded page/post functions outside of wp-login.php?
- Is it possible to display newly generated password after wp_generate_password()?
- Password protect wp-login.php
- Error when send reset password
- Alter the reset password link
- Is it possible to have users register without having a password?
- Password Protection for posts and pages [duplicate]
- Cant login, Password MUST be reset error, after reset
- WordPress reset password button not working
- Override the default password length when creating or updating a user profile
- FTP Password (not private key-value pair) for EC2 Instance
- My WordPress password for admin account is changing automatically
- WordPress user password reset not working
- password reset link not being sent
- Customize From and email address on password reset