is_multisite

If Multisite is enabled.

Description

is_multisite(); 

Usage

  1. if ( !function_exists( 'is_multisite' ) ) { 
  2. require_once ABSPATH . WPINC . '/load.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = is_multisite(); 
  7.  

Defined (1)

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

/wp-includes/load.php  
  1. function is_multisite() { 
  2. if ( defined( 'MULTISITE' ) ) 
  3. return MULTISITE
  4.  
  5. if ( defined( 'SUBDOMAIN_INSTALL' ) || defined( 'VHOST' ) || defined( 'SUNRISE' ) ) 
  6. return true; 
  7.  
  8. return false;