is_main_blog

Deprecated functionality to determin if the current site is the main site.

Description

is_main_blog(); 

Usage

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

Defined (1)

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

/wp-includes/ms-deprecated.php  
  1. function is_main_blog() { 
  2. _deprecated_function( __FUNCTION__, '3.0.0', 'is_main_site()' ); 
  3. return is_main_site();