profile_personal_options
Action HookDescription
Fires after the 'Personal Options' settings table on the 'Profile' editing screen. The action only fires if the current user is editing their own profile.Hook Information
| File Location |
wp-admin/user-edit.php
View on GitHub
|
| Hook Type | Action |
| Line Number | 437 |
Hook Parameters
| Type | Name | Description |
|---|---|---|
WP_User
|
$profile_user
|
The current WP_User object. |
Usage Examples
Basic Usage
<?php
// Hook into profile_personal_options
add_action('profile_personal_options', 'my_custom_function', 10, 1);
function my_custom_function($profile_user) {
// Your custom code here
}
Source Code Context
wp-admin/user-edit.php:437
- How this hook is used in WordPress core
<?php
432 *
433 * @since 2.0.0
434 *
435 * @param WP_User $profile_user The current WP_User object.
436 */
437 do_action( 'profile_personal_options', $profile_user );
438 }
439 ?>
440
441 <h2><?php _e( 'Name' ); ?></h2>
442
PHP Documentation
<?php
/**
* Fires after the 'Personal Options' settings table on the 'Profile' editing screen.
*
* The action only fires if the current user is editing their own profile.
*
* @since 2.0.0
*
* @param WP_User $profile_user The current WP_User object.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-admin/user-edit.php
Related Hooks
Related hooks will be displayed here in future updates.