Codex tools: Log in
Contents |
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.
add_action('show_user_profile', 'add_extra_profile_fields');
function add_extra_profile_fields() {
// add extra profile fields to user edit page
}
The show_user_profile hook is located in /wp-admin/user-edit.php
Return to Plugin API/Action Reference