woocommerce_save_account_details_errors action

Closes #8532
This commit is contained in:
Mike Jolley 2015-07-10 11:11:51 +01:00
parent ea82ce9f06
commit 8bf4469178
1 changed files with 1 additions and 2 deletions

View File

@ -148,7 +148,6 @@ class WC_Form_Handler {
return;
}
$update = true;
$errors = new WP_Error();
$user = new stdClass();
@ -212,7 +211,7 @@ class WC_Form_Handler {
}
// Allow plugins to return their own errors.
do_action_ref_array( 'user_profile_update_errors', array( &$errors, $update, &$user ) );
do_action_ref_array( 'woocommerce_save_account_details_errors', array( &$errors, &$user ) );
if ( $errors->get_error_messages() ) {
foreach ( $errors->get_error_messages() as $error ) {