edit_user_profile_update
Action HookDescription
Fires before the page loads on the 'Edit User' screen.Hook Information
File Location |
wp-admin/user-edit.php
View on GitHub
|
Hook Type | Action |
Line Number | 158 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$user_id
|
The user ID. |
Usage Examples
Basic Usage
<?php
// Hook into edit_user_profile_update
add_action('edit_user_profile_update', 'my_custom_function', 10, 1);
function my_custom_function($user_id) {
// Your custom code here
}
Source Code Context
wp-admin/user-edit.php:158
- How this hook is used in WordPress core
<?php
153 *
154 * @since 2.7.0
155 *
156 * @param int $user_id The user ID.
157 */
158 do_action( 'edit_user_profile_update', $user_id );
159 }
160
161 // Update the email address in signups, if present.
162 if ( is_multisite() ) {
163 $user = get_userdata( $user_id );
PHP Documentation
<?php
/**
* Fires before the page loads on the 'Edit User' screen.
*
* @since 2.7.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.