Skip to content

Instantly share code, notes, and snippets.

@tozbey
Created September 30, 2020 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tozbey/437e98a91d856eae410f034cb41df39d to your computer and use it in GitHub Desktop.
Save tozbey/437e98a91d856eae410f034cb41df39d to your computer and use it in GitHub Desktop.
Woocommerce - 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