WordPress – How to disable user change password notifications

The following code can be used to disable the WordPress change password notification emails.

To use copy into your theme’s functions.php file, below the opening <? line.

// DISABLE default WordPress change password notifications
if (!function_exists('wp_password_change_notification')) {
    function wp_password_change_notification($user) {
    return;
    }
}

How does it work?

The wp_password_change_notification function is the part of the WordPress core that handles the email notification.

It’s also a pluggable function – meaning we can call it through a theme or a plugin and completely override it.

The code above does this and returns nothing, meaning no email is created or sent when it is triggered by a user changing their password.