diff --git a/includes/shortcodes/class-wc-shortcode-my-account.php b/includes/shortcodes/class-wc-shortcode-my-account.php index a9d191698aa..e3906c5371c 100644 --- a/includes/shortcodes/class-wc-shortcode-my-account.php +++ b/includes/shortcodes/class-wc-shortcode-my-account.php @@ -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 ); + } } /**