do_action( 'edit_user_profile', WP_User $profile_user )
Fires after the ‘About the User’ settings table on the ‘Edit User’ screen.
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 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.
Source
File: wp-admin/user-edit.php
.
View all references
do_action( 'edit_user_profile', $profile_user );
Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
This action can be used to add a form to the backend user editing screen and save some additional user meta data.
For example to add a field for the users birthday:
Top ↑
Feedback
This example is wrong. You can’t pass this callback to user_new_form because that hook doesn’t pass an User object, just a string type. The very least this callback would have to conditionally use user object, not expect it to be there in all cases. Above code will throw a uncaught type error when adding a new user. Also see https://developer.wordpress.org/reference/hooks/user_new_form/ — By Beda —
Example migrated from Codex: