show_user_profile
Action HookDescription
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.Hook Information
File Location |
wp-admin/user-edit.php
View on GitHub
|
Hook Type | Action |
Line Number | 884 |
Hook Parameters
Type | Name | Description |
---|---|---|
WP_User
|
$profile_user
|
The current WP_User object. |
Usage Examples
Basic Usage
<?php
// Hook into show_user_profile
add_action('show_user_profile', 'my_custom_function', 10, 1);
function my_custom_function($profile_user) {
// Your custom code here
}
Source Code Context
wp-admin/user-edit.php:884
- How this hook is used in WordPress core
<?php
879 *
880 * @since 2.0.0
881 *
882 * @param WP_User $profile_user The current WP_User object.
883 */
884 do_action( 'show_user_profile', $profile_user );
885 } else {
886 /**
887 * Fires after the 'About the User' settings table on the 'Edit User' screen.
888 *
889 * @since 2.0.0
PHP Documentation
<?php
/**
* 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.
*
* @since 2.0.0
*
* @param WP_User $profile_user The current WP_User object.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-admin/user-edit.php
Related Hooks
Related hooks will be displayed here in future updates.