Merge pull request #24154 from ryangjchandler/master
Fix #24153 - Added filter to disable password change notification
This commit is contained in:
commit
e7c0c894b2
|
@ -376,8 +376,10 @@ class WC_Shortcode_My_Account {
|
|||
wp_set_password( $new_pass, $user->ID );
|
||||
self::set_reset_password_cookie();
|
||||
|
||||
if ( ! apply_filters( 'woocommerce_disable_password_change_notification', false ) ) {
|
||||
wp_password_change_notification( $user );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set or unset the cookie.
|
||||
|
|
Loading…
Reference in New Issue