diff --git a/wp-admin/includes/user.php b/wp-admin/includes/user.php index a56a2778a6..e64f78d572 100644 --- a/wp-admin/includes/user.php +++ b/wp-admin/includes/user.php @@ -174,6 +174,8 @@ function edit_user( $user_id = 0 ) { $errors->add( 'email_exists', __('ERROR: This email is already registered, please choose another one.'), array( 'form-field' => 'email' ) ); } + do_action('user_profile_update_errors', $errors); + if ( $errors->get_error_codes() ) return $errors;