edit_user_profile WordPress Action Hook

The edit_user_profile hook is triggered when a user's profile is updated. It allows you to modify the user's profile before it is saved to the database.

do_action( 'edit_user_profile', WP_User $profile_user ) #

Fires after the ‘About the User’ settings table on the ‘Edit User’ screen.


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


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.