Used By
Used By | Description |
---|---|
wp-admin/includes/user.php: edit_user() | Edit user settings based on contents of $_POST |
Fires before user profile update errors are returned.
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.
Version | Description |
---|---|
2.8.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/user_profile_update_errors