before_populate_network
before_populate_network
Appears in: wordpress-6.9
Hook Type: action
Displaying hooks found in version: wordpress-6.9do_action('before_populate_network') is found 1 times:
- /wp-admin/includes/schema.php line 1022
* @param string $site_name The name of the network. * @param string $path The path to append to the network's domain name. * @param bool $subdomain_install Whether the network is a subdomain installation or a subdirectory installation. */ do_action( 'before_populate_network', $network_id, $domain, $email, $site_name, $path, $subdomain_install ); $errors = new WP_Error(); if ( '' === $domain ) { $errors->add( 'empty_domain', __( 'You must provide a domain name.' ) ); } if ( '' === $site_name ) {