personal_options WordPress Action Hook

The personal_options hook is a great way to add extra options to the WordPress user profile screen. This hook is called after the default user fields are output, so it's a great place to add your own custom fields. You can use this hook to add extra fields for things like social media links, website URLs, or even custom user roles.

do_action( 'personal_options', WP_User $profile_user ) #

Fires at the end of the ‘Personal Options’ settings table on the user editing screen.


Parameters

$profile_user

(WP_User)The current WP_User object.


Top ↑

More Information

Hooks immediately after the “Show toolbar…” option on profile page (if current user). Any HTML output should take into account that this hook occurs within the “Personal Options” <table> element.


Top ↑

Source

File: wp-admin/user-edit.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
2.7.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.