user_profile_update_errors
Fires before user profile update errors are returned.
Usage
add_action( 'user_profile_update_errors', 'wp_kama_user_profile_update_errors_action' );
/**
* Function for `user_profile_update_errors` action-hook.
*
* @param WP_Error $errors WP_Error object (passed by reference).
*
* @return void
*/
function wp_kama_user_profile_update_errors_action( $errors ){
// action...
}
- $errors(WP_Error)
- WP_Error object (passed by reference).
Changelog
| Since 2.8.0 | Introduced. |
Where the hook is called
wp-admin/includes/user.php 226
do_action_ref_array( 'user_profile_update_errors', array( &$errors, $update, &$user ) );