Codex tools: Log in
Contents |
This hook allows you to access data for a user immediately after their database information is updated. Two arguments are passed to functions using this hook: "user_id" (int) and "old_user_data" (object).
Note : This hook is not used on user edit/profile pages. To hook into the admin's user edit pages, use the hook edit_user_profile_update which is located in `/wp-includes/user-edit.php` instead.
<?php
add_action( 'profile_update', 'my_profile_update' );
function my_profile_update( $user_id, $old_user_data ) {
// Do something
}
?>
This hook is located in `/wp-includes/user.php`
Return to Plugin API/Action Reference