profile_update action-hook . WP 2.0.0
Fires immediately after an existing user is updated.
Usage
add_action( 'profile_update', 'action_function_name_3814', 10, 2 ); function action_function_name_3814( $user_id, $old_user_data ){ // action... }
- $user_id(int)
- User ID.
- $old_user_data(WP_User)
- Object containing user's data prior to update.
Changelog
Since 2.0.0 | Introduced. |
Where the hook is called
profile_update
wp-includes/user.php 2087
do_action( 'profile_update', $user_id, $old_user_data );
Where in WP core the hook is used WordPress
wp-includes/user.php 108
add_action( 'profile_update', 'default_password_nag_edit_user', 10, 2 );