wp_update_user action-hookWP 6.3.0

Fires after the user has been updated and emails have been sent.

Usage

add_action( 'wp_update_user', 'wp_kama_update_user_action', 10, 3 );

/**
 * Function for `wp_update_user` action-hook.
 * 
 * @param int   $user_id      The ID of the user that was just updated.
 * @param array $userdata     The array of user data that was updated.
 * @param array $userdata_raw The unedited array of user data that was updated.
 *
 * @return void
 */
function wp_kama_update_user_action( $user_id, $userdata, $userdata_raw ){

	// action...
}
$user_id(int)
The ID of the user that was just updated.
$userdata(array)
The array of user data that was updated.
$userdata_raw(array)
The unedited array of user data that was updated.

Changelog

Since 6.3.0 Introduced.

Where the hook is called

wp_update_user()
wp_update_user
wp-includes/user.php 2764
do_action( 'wp_update_user', $user_id, $userdata, $userdata_raw );

Where the hook is used in WordPress

Usage not found.