WordPress.org

Ready to get started?Download WordPress

Codex

Plugin API/Action Reference/edit 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 another users profile page (not their own). If you want to apply your hook to ALL profile pages (including the current user) then you also need to use the show_user_profile hook.

Parameters

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

Example

add_action('edit_user_profile', 'add_extra_profile_fields');

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

Source File

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

Related

Return to Plugin API/Action Reference