do_action( 'profile_update', int $user_id, WP_User $old_user_data, array $userdata )
Fires immediately after an existing user is updated.
Parameters
- $user_id
-
(int) User ID.
- $old_user_data
-
(WP_User) Object containing user's data prior to update.
- $userdata
-
(array) The raw array of data passed to wp_insert_user().
Source
File: wp-includes/user.php
Changelog
Version | Description |
---|---|
5.8.0 | The $userdata parameter was added. |
2.0.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/profile_update