ms_is_switched

Determines if switch_to_blog() is in effect.

Description

ms_is_switched(); 

Usage

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

Defined (1)

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

/wp-includes/ms-blogs.php  
  1. function ms_is_switched() { 
  2. return ! empty( $GLOBALS['_wp_switched_stack'] );