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' ) );
	}


Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.