personal_options_update
Action HookDescription
Fires before the page loads 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 | 149 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$user_id
|
The user ID. |
Usage Examples
Basic Usage
<?php
// Hook into personal_options_update
add_action('personal_options_update', 'my_custom_function', 10, 1);
function my_custom_function($user_id) {
// Your custom code here
}
Source Code Context
wp-admin/user-edit.php:149
- How this hook is used in WordPress core
<?php
144 *
145 * @since 2.0.0
146 *
147 * @param int $user_id The user ID.
148 */
149 do_action( 'personal_options_update', $user_id );
150 } else {
151 /**
152 * Fires before the page loads on the 'Edit User' screen.
153 *
154 * @since 2.7.0
PHP Documentation
<?php
/**
* Fires before the page loads on the 'Profile' editing screen.
*
* The action only fires if the current user is editing their own profile.
*
* @since 2.0.0
*
* @param int $user_id The user ID.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-admin/user-edit.php
Related Hooks
Related hooks will be displayed here in future updates.