wphooks.info - user_profile_update_errors

user_profile_update_errors

(trunk - 5.0-alpha-42719)

The hook occurs in the following file:

wp-admin/includes/user.php:
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
	/**
	 * Fires before user profile update errors are returned.
	 *
	 * @since 2.8.0
	 *
	 * @param WP_Error $errors WP_Error object (passed by reference).
	 * @param bool     $update  Whether this is a user update.
	 * @param stdClass $user   User object (passed by reference).
	 */
	do_action_ref_array( 'user_profile_update_errors', array( &$errors, $update, &$user ) );

	if ( $errors->get_error_codes() ) {
		return $errors;
	}

	if ( $update ) {
		$user_id = wp_update_user( $user );
	} else {
		$user_id = wp_insert_user( $user );