network_user_new_created_user
Action HookDescription
Fires after a new user has been created via the network user-new.php page.Hook Information
File Location |
wp-admin/network/user-new.php
View on GitHub
|
Hook Type | Action |
Line Number | 64 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$user_id
|
ID of the newly created user. |
Usage Examples
Basic Usage
<?php
// Hook into network_user_new_created_user
add_action('network_user_new_created_user', 'my_custom_function', 10, 1);
function my_custom_function($user_id) {
// Your custom code here
}
Source Code Context
wp-admin/network/user-new.php:64
- How this hook is used in WordPress core
<?php
59 *
60 * @since 4.4.0
61 *
62 * @param int $user_id ID of the newly created user.
63 */
64 do_action( 'network_user_new_created_user', $user_id );
65
66 wp_redirect(
67 add_query_arg(
68 array(
69 'update' => 'added',
PHP Documentation
<?php
/**
* Fires after a new user has been created via the network user-new.php page.
*
* @since 4.4.0
*
* @param int $user_id ID of the newly created user.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-admin/network/user-new.php
Related Hooks
Related hooks will be displayed here in future updates.