personal_options_update
Fires before the page loads on the 'Profile' editing screen.
The action only fires if the current user is editing their own profile.
Usage
add_action( 'personal_options_update', 'wp_kama_personal_options_update_action' );
/**
* Function for `personal_options_update` action-hook.
*
* @param int $user_id The user ID.
*
* @return void
*/
function wp_kama_personal_options_update_action( $user_id ){
// action...
}
- $user_id(int)
- The user ID.
Changelog
| Since 2.0.0 | Introduced. |
Where the hook is called
In file: /wp-admin/user-edit.php
personal_options_update
wp-admin/user-edit.php 149
do_action( 'personal_options_update', $user_id );
Where the hook is used in WordPress
wp-admin/includes/admin-filters.php 127
add_action( 'personal_options_update', 'send_confirmation_on_profile_email' );