install_network() WordPress Function
The install_network() function installs a new network of WordPress sites. This function takes two parameters: the network's base domain and the network's title. The base domain is the network's main domain name. This is the domain that you will use to access the network's admin interface. The title is the name of the network. This will be used as the network's identifier. After you have installed a network, you can add new sites to it by using the network's admin interface.
install_network() #
Install Network.
Source
File: wp-admin/includes/schema.php
function install_network() { if ( ! defined( 'WP_INSTALLING_NETWORK' ) ) { define( 'WP_INSTALLING_NETWORK', true ); } dbDelta( wp_get_db_schema( 'global' ) ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |