show_user_profile
Fires after the 'About Yourself' settings table on the 'Profile' editing screen.
The action only fires if the current user is editing their own profile.
Usage
add_action( 'show_user_profile', 'wp_kama_show_user_profile_action' ); /** * Function for `show_user_profile` action-hook. * * @param WP_User $profile_user The current WP_User object. * * @return void */ function wp_kama_show_user_profile_action( $profile_user ){ // action... }
- $profile_user(WP_User)
- The current WP_User object.
Changelog
Since 2.0.0 | Introduced. |
Where the hook is called
In file: /wp-admin/user-edit.php
show_user_profile
wp-admin/user-edit.php 876
do_action( 'show_user_profile', $profile_user );