Add hook for update profile, props Cimmo, fixes #9302

git-svn-id: https://develop.svn.wordpress.org/trunk@11096 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-04-27 11:18:04 +00:00
parent 93ce9fc60b
commit 5ede340f80

View File

@ -174,6 +174,8 @@ function edit_user( $user_id = 0 ) {
$errors->add( 'email_exists', __('<strong>ERROR</strong>: 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;