do_action_ref_array( 'user_profile_update_errors', WP_Error $errors , bool $update , stdClass $user )
Fires before user profile update errors are returned.
Parameters Parameters
More Information More Information
This hook runs AFTER edit_user_profile_update and personal_options_update. If you want to validate some custom fields before saving, a workaround is to check the $errors array in this same callback, after performing your validations, and save the data if it is empty.
On return, if the errors object contains errors then the save is not completed & the errors displayed to the user.
Source Source
Changelog Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |
User Contributed Notes User Contributed Notes
-
Skip to note 1 content You must log in to vote on the helpfulness of this noteVote results for this note: 0You must log in to vote on the helpfulness of this note