network_site_users_created_user
Fires after a user has been created via the network site-users.php page.
Usage
add_action( 'network_site_users_created_user', 'wp_kama_network_site_users_created_user_action' ); /** * Function for `network_site_users_created_user` action-hook. * * @param int $user_id ID of the newly created user. * * @return void */ function wp_kama_network_site_users_created_user_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/site-users.php
network_site_users_created_user
wp-admin/network/site-users.php 88
do_action( 'network_site_users_created_user', $user_id );
Where the hook is used in WordPress
wp-includes/ms-default-filters.php 31
add_action( 'network_site_users_created_user', 'wp_send_new_user_notifications' );