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
- Customize WordPress Password-Reset Behavior
- Could not reset WordPress user password using WP CLI
- How to change user password with wp-cli?
- Disable user registration password email
- Check for correct username on custom login form
- Missing URL in password reset email
- Loosen/disable password policy
- Password Protect Custom Page
- Password protecting a page
- How do I create a password reset link?
- How to save Admin FTP password
- How can I change the default wordpress password hashing system to something custom?
- If I change the salt keys in my wp-config will all passwords break?
- Conditional to test if post has password protection enabled
- Bypass password protected posts via GET variable
- Check the password of a user
- How to add Wp_error using lostpassword_post hook when validating custom field?
- Create a USERNAME and PASSWORD protected WordPress page
- 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
- How to shorten length of auto generated password sent during registration?
- Forgot password not working
- wp_hash_password unexpected behaviour
- Redirect a password protected page?
- 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
- Change default recovery link expiration time
- 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?
- Password protecting template, secured content not showing if even password is right
- How validate usernames/passwords against WP’s database?
- Make post password required to publish
- WordPress reset password returns invalid key
- 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
- How to set minimum length and error message for password recovery?
- Why is resetting the WordPress Users password not working?
- Get plain password on register
- How to customize reset_url or $reset_url
- post_password_required() not recognizing cookie set with correct password
- Customize reset password form redirect problem
- How Authentication in wordpress works? wp_authenticate_username_password()
- Password protect the site (without htaccess or membership)
- Password Protected page not asking for a password
- I would like to password protect my entire WordPress site (ip validated), except for one page
- Password protection for page template
- Custom login form for front-end user as well as admin
- how to remotely check a username / password from within a plugin
- Forgot Password/ Password Reset Page does not exist
- Password changed [duplicate]
- Enable Update button only when password is shown strong
- How to get user password before being encrypted outside the wordpress core once add a new user from dashboard?
- Adding parameters to password reset key
- How to limit the number of forgot password reset attempts in WordPress?
- wp_hash_password create a different hash everytime
- Custom password form allows unlock two posts with the same password
- How to change password
- Generating the password reset link automatically
- Password protect pages – allow more than one password
- Like to store multiple passwords in db table wp_posts field post_password?
- Password Protected Post is invisible until you login
- 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 check user’s password?
- How to Remove or Deactivate “Application Passwords” in WordPress
- What’s the algorithm to verify user password?
- How to recover password from a user
- resend user login & password with custom button
- Woocommerce password Reset
- WordPress admin creation through phpmyadmin not working