is_subdomain_install

Whether a subdomain configuration is enabled.

Description

is_subdomain_install(); 

Usage

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

Defined (1)

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

/wp-includes/ms-load.php  
  1. function is_subdomain_install() { 
  2. if ( defined('SUBDOMAIN_INSTALL') ) 
  3.  
  4. return ( defined( 'VHOST' ) && VHOST == 'yes' );