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.
Использование
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.
Список изменений
| С версии 2.0.0 | Введена. |
Где вызывается хук
В файле: /wp-admin/user-edit.php
personal_options_update
wp-admin/user-edit.php 149
do_action( 'personal_options_update', $user_id );
Где используется хук в WordPress
wp-admin/includes/admin-filters.php 127
add_action( 'personal_options_update', 'send_confirmation_on_profile_email' );