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
-
User ID.
- $old_user_data
-
Object containing user's data prior to update.
- $userdata
-
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. |