Last active
March 19, 2020 00:23
-
-
Save alexmustin/4b1ee685a76dd977878192eae5896f6d to your computer and use it in GitHub Desktop.
WordPress - Disable Admin Notification of User Password Change
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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