Skip to content

Instantly share code, notes, and snippets.

@alexmustin
Last active March 19, 2020 00:23
Show Gist options
  • Select an option

  • Save alexmustin/4b1ee685a76dd977878192eae5896f6d to your computer and use it in GitHub Desktop.

Select an option

Save alexmustin/4b1ee685a76dd977878192eae5896f6d to your computer and use it in GitHub Desktop.
WordPress - Disable Admin Notification of User Password Change
<?php
/**
* Disable Admin Notification of User Password Change
*
* Credit: https://wordpress.stackexchange.com/a/266006/67466
*
* Suppressing this email notification has to be handled
* with a plugin because pluggable.php is loaded earlier
* than a theme's functions.php file.
*
* @see pluggable.php
*/
if ( ! function_exists( 'wp_password_change_notification' ) ) {
function wp_password_change_notification( $user ) {
return;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment