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.
Parameters
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.
Source
File: wp-admin/user-edit.php
Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |