edit_user_profile
Fires after the 'Application Passwords' section is loaded on 'Edit User' screen.
The action only fires if the current user is editing another user's profile.
Использование
add_action( 'edit_user_profile', 'wp_kama_edit_user_profile_action' );
/**
* Function for `edit_user_profile` action-hook.
*
* @param WP_User $profile_user The current WP_User object.
*
* @return void
*/
function wp_kama_edit_user_profile_action( $profile_user ){
// action...
}
- $profile_user(WP_User)
- The current WP_User object.
Список изменений
| С версии 2.0.0 | Введена. |
Где вызывается хук
В файле: /wp-admin/user-edit.php
edit_user_profile
wp-admin/user-edit.php 909
do_action( 'edit_user_profile', $profile_user );