pre_network_site_new_created_user
Fires immediately before a new user is created via the network site-new.php page.
Usage
add_action( 'pre_network_site_new_created_user', 'wp_kama_pre_network_site_new_created_user_action' ); /** * Function for `pre_network_site_new_created_user` action-hook. * * @param string $email Email of the non-existent user. * * @return void */ function wp_kama_pre_network_site_new_created_user_action( $email ){ // action... }
- $email(string)
- Email of the non-existent user.
Changelog
Since 4.5.0 | Introduced. |
Where the hook is called
In file: /wp-admin/network/site-new.php
wp-admin/network/site-new.php 121
do_action( 'pre_network_site_new_created_user', $email );