populate_network


populate_network ( $network_id = 1, $domain = '', $email = '', $site_name = '', $path = '/', $subdomain_install = false )

Parameters:
  • (int) $network_id ID of network to populate.
  • (string) $domain The domain name for the network (eg. "example.com").
  • (string) $email Email address for the network administrator.
  • (string) $site_name The name of the network.
  • (string) $path Optional. The path to append to the network's domain name. Default '/'.
  • (bool) $subdomain_install Optional. Whether the network is a subdomain installation or a subdirectory installation. Default false, meaning the network is a subdirectory installation.
Returns:
  • (bool|WP_Error) True on success, or WP_Error on warning (with the installation otherwise successful, so the error code must be checked) or failure.
Defined at:

Description

Populate network settings.

Related Functions

populate_network_meta, upgrade_network, wp_is_large_network, populate_roles, get_network

Top Google Results

User discussions

wpseek mobile