WPDev.one
Core Function
View Source on Trac ↗

populate_network()

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

Populate network settings.

Parameters 1 required

Name / Type Description
$network_id
int

ID of network to populate.

$domain
string

The domain name for the network. Example: "example.com".

$email
string

Email address for the network administrator.

$site_name
string

The name of the network.

$path
string

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.

Required

Return Value

((true)
(true | WP_Error) True on success, or WP_Error on warning (with the installation otherwise successful, so the error code must be checked) or failure.

Function Information

Since Version
3.0.0
Source File
wp-admin/includes/schema.php
Advertisement