WordPress.org

Ready to get started?Download WordPress

Codex

Plugin API/Action Reference/show user profile

This page is marked as incomplete. You can help Codex by expanding it.

Contents

Description

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.

Parameters

$user
(object) (optional) The WP_User object of the user being edited.
Default: None

Example

add_action('show_user_profile', 'add_extra_profile_fields');

function add_extra_profile_fields() {
    // add extra profile fields to user edit page
}

Source File

The show_user_profile hook is located in /wp-admin/user-edit.php

Related

Return to Plugin API/Action Reference