Created
September 30, 2020 19:02
-
-
Save tozbey/437e98a91d856eae410f034cb41df39d to your computer and use it in GitHub Desktop.
Woocommerce - Disable Admin Notification of User Password Change
This file contains 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