pre_network_site_new_created_user

pre_network_site_new_created_user

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('pre_network_site_new_created_user') is found 1 times:

  • /wp-admin/network/site-new.php line 121
    		 * @since 4.5.0
    		 *
    		 * @param string $email Email of the non-existent user.
    		 */
    		do_action( 'pre_network_site_new_created_user', $email );
    
    		$user_id = username_exists( $domain );
    		if ( $user_id ) {
    			wp_die( __( 'The domain or path entered conflicts with an existing username.' ) );
    		}
    		$password = wp_generate_password( 12, false );