ms_is_switched() – Determines if switch_to_blog() is in effect

You appear to be a bot. Output may be restricted

Description

Determines if switch_to_blog() is in effect

Usage

$bool = ms_is_switched();

Parameters

Returns

bool True if switched, false otherwise.

Source

File name: wordpress/wp-includes/ms-blogs.php
Lines:

1 to 3 of 3
function ms_is_switched() {
  return ! empty( $GLOBALS['_wp_switched_stack'] );
}
 

 View on GitHub View on Trac