network_user_new_created_user
Fires after a new user has been created via the network user-new.php page.
Usage
add_action( 'network_user_new_created_user', 'wp_kama_network_user_new_created_action' ); /** * Function for `network_user_new_created_user` action-hook. * * @param int $user_id ID of the newly created user. * * @return void */ function wp_kama_network_user_new_created_action( $user_id ){ // action... }
- $user_id(int)
- ID of the newly created user.
Changelog
Since 4.4.0 | Introduced. |
Where the hook is called
In file: /wp-admin/network/user-new.php
network_user_new_created_user
wp-admin/network/user-new.php 64
do_action( 'network_user_new_created_user', $user_id );
Where the hook is used in WordPress
wp-includes/ms-default-filters.php 32
add_action( 'network_user_new_created_user', 'wp_send_new_user_notifications' );