install_network

The WordPress Core install network function.

Description

install_network(); 

Usage

  1. if ( !function_exists( 'install_network' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/schema.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = install_network(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/schema.php  
  1. function install_network() { 
  2. if ( ! defined( 'WP_INSTALLING_NETWORK' ) ) 
  3. define( 'WP_INSTALLING_NETWORK', true ); 
  4.  
  5. dbDelta( wp_get_db_schema( 'global' ) );