To disable Admin email notification when a user resets their own password, create a Plugin (or Must Use Plugin) using the following code snippet:
/**
* Disable Admin Notification of User Password Change
*
* @see pluggable.php
*/
if ( ! function_exists( 'wp_password_change_notification' ) ) {
function wp_password_change_notification( $user ) {
return;
}
}
This will stop the following email from being sent to the Administrator's Email in Settings > General:
From: WordPress <[email protected]>
To: [email protected]
Subject: [WordPress] Password ChangedPassword changed for user: username
Suppressing this email notification has to handled with a plugin because pluggable.php
is loaded earlier than a theme's functions.php
file.
If you wish to instead disable User email notification that a user has successfully changed their own password, use the following filter placed in functions.php
:
/**
* Disable User Notification of Password Change Confirmation
*/
add_filter( 'send_email_change_email', '__return_false' );
This will suppress the following email from being sent:
From: WordPress <[email protected]>
To: [email protected]
Subject: [WordPress] Password ChangedHi username,
This notice confirms that your password was changed on WordPress.
If you did not change your password, please contact the Site Administrator at [email protected]
This email has been sent to [email protected]
Regards,
All at WordPress
http://example.com/