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. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Basic Usage
Finding out if a user email was updated from the admin dashboard, can work for other fields as well if value being checked is changed:
Top ↑
Feedback
Hi, do you know if this fires when the user requests a email update or only AFTER the change is completed (user has confirmed the request thru the link in the email he receives) ? — By Daniele Muscetta —