Title: show_user_profile
Published: April 25, 2014
Last modified: February 24, 2026

---

# do_action( ‘show_user_profile’, WP_User $profile_user )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/show_user_profile/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/show_user_profile/?output_format=md#parameters)
 * [More Information](https://developer.wordpress.org/reference/hooks/show_user_profile/?output_format=md#more-information)
 * [Source](https://developer.wordpress.org/reference/hooks/show_user_profile/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/hooks/show_user_profile/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/hooks/show_user_profile/?output_format=md#user-contributed-notes)

[ Back to top](https://developer.wordpress.org/reference/hooks/show_user_profile/?output_format=md#wp--skip-link--target)

Fires after the ‘Application Passwords’ section is loaded on the ‘Profile’ editing
screen.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/show_user_profile/?output_format=md#description)󠁿

The action only fires if the current user is editing their own profile.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/show_user_profile/?output_format=md#parameters)󠁿

 `$profile_user`[WP_User](https://developer.wordpress.org/reference/classes/wp_user/)

The current [WP_User](https://developer.wordpress.org/reference/classes/wp_user/)
object.

## 󠀁[More Information](https://developer.wordpress.org/reference/hooks/show_user_profile/?output_format=md#more-information)󠁿

This action hook is typically used to output new fields or data to the _bottom_ 
of WordPress’s user profile pages.

This hook only triggers when a user is viewing their _own_ profile page. If you 
want to apply your hook to ALL profile pages (not just the current user) then you
also need to use the [edit_user_profile](https://developer.wordpress.org/reference/hooks/edit_user_profile/)
hook.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/show_user_profile/?output_format=md#source)󠁿

    ```php
    do_action( 'show_user_profile', $profile_user );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/user-edit.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-admin/user-edit.php#L898)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/user-edit.php#L898-L898)

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/show_user_profile/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.0.0](https://developer.wordpress.org/reference/since/2.0.0/) | Introduced. |

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/hooks/show_user_profile/?output_format=md#user-contributed-notes)󠁿

 1.   [Skip to note 3 content](https://developer.wordpress.org/reference/hooks/show_user_profile/?output_format=md#comment-content-2229)
 2.    [1994rstefan](https://profiles.wordpress.org/1994rstefan/)  [  9 years ago  ](https://developer.wordpress.org/reference/hooks/show_user_profile/#comment-2229)
 3.  [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fshow_user_profile%2F%23comment-2229)
     Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fshow_user_profile%2F%23comment-2229)
 4.  See the edit_user_profile action for an example on how to add a form to the backend
     user edit screen and save some additional user meta data.
      [https://developer.wordpress.org/reference/hooks/edit_user_profile/#comment-2228](https://developer.wordpress.org/reference/hooks/edit_user_profile/#comment-2228)
 5.   [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fshow_user_profile%2F%3Freplytocom%3D2229%23feedback-editor-2229)
 6.   [Skip to note 4 content](https://developer.wordpress.org/reference/hooks/show_user_profile/?output_format=md#comment-content-4280)
 7.    [Collins Mbaka](https://profiles.wordpress.org/collinsmbaka/)  [  6 years ago  ](https://developer.wordpress.org/reference/hooks/show_user_profile/#comment-4280)
 8.  [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fshow_user_profile%2F%23comment-4280)
     Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fshow_user_profile%2F%23comment-4280)
 9.  Example migrated from Codex:
 10.     ```php
         /**
          * Show custom user profile fields
          * 
          * @param  object $profileuser A WP_User object
          * @return void
          */
     
         function wpdocs_custom_user_profile_fields( $profileuser ) {
         ?>
         	<table class="form-table">
         		<tr>
         			<th>
         				<label for="user_location"><?php _e( 'Location' ); ?></label>
         			</th>
         			<td>
         				<input type="text" name="user_location" id="user_location" value="<?php echo esc_attr( get_the_author_meta( 'user_location', $profileuser->ID ) ); ?>" class="regular-text" />
         				<br><span class="description"><?php _e( 'Your location.', 'text-domain' ); ?></span>
         			</td>
         		</tr>
         	</table>
         <?php
         }
         add_action( 'show_user_profile', 'wpdocs_custom_user_profile_fields' );
         add_action( 'edit_user_profile', 'wpdocs_custom_user_profile_fields' );
         ```
     
 11.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fshow_user_profile%2F%3Freplytocom%3D4280%23feedback-editor-4280)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fshow_user_profile%2F)
before being able to contribute a note or feedback.