show_user_profile WordPress Action Hook

The show_user_profile hook is a great way to display additional information about a user on their profile page. This hook can be used to display a user's social media links, contact information, or even a custom message.

do_action( 'show_user_profile', WP_User $profile_user ) #

Fires after the ‘About Yourself’ settings table on the ‘Profile’ editing screen.


Description

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


Top ↑

Parameters

$profile_user

(WP_User)The current WP_User object.


Top ↑

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 hook.


Top ↑

Source

File: wp-admin/user-edit.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
2.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.