Ready to get started?Download WordPress


Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Plugin API/Action Reference/profile update

This page is marked as incomplete. You can help Codex by expanding it.


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.



    add_action( 'profile_update', 'my_profile_update', 10, 2 );

    function my_profile_update( $user_id, $old_user_data ) {
        // Do something


(integer) (optional) The user ID of the user being edited.
Default: None
(object) (optional) The WP_User object of the user before it was edited.
Default: None


This hook is located in `/wp-includes/user.php`


Action Hooks

Filter Hooks

Return to Plugin API/Action Reference