user_profile_update_errors action-hook . WP 2.8.0
Fires before user profile update errors are returned.
Usage
add_action( 'user_profile_update_errors', 'action_function_name_6885', 10, 3 ); function action_function_name_6885( $errors, $update, $user ){ // action... }
- $errors(WP_Error)
- WP_Error object (passed by reference).
- $update(true/false)
- Whether this is a user update.
- $user(stdClass)
- User object (passed by reference).
Changelog
Since 2.8.0 | Introduced. |
Where the hook is called
wp-admin/includes/user.php 220
do_action_ref_array( 'user_profile_update_errors', array( &$errors, $update, &$user ) );