Merge pull request #24154 from ryangjchandler/master

Fix #24153 - Added filter to disable password change notification
This commit is contained in:
Rodrigo Primo 2019-09-24 18:08:04 -03:00 committed by GitHub
commit e7c0c894b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -376,7 +376,9 @@ class WC_Shortcode_My_Account {
wp_set_password( $new_pass, $user->ID );
self::set_reset_password_cookie();
wp_password_change_notification( $user );
if ( ! apply_filters( 'woocommerce_disable_password_change_notification', false ) ) {
wp_password_change_notification( $user );
}
}
/**