WordPress at a glance
function is not described

ms_is_switched() WP 3.5.0

Determines if switch_to_blog() is in effect

  • Global. Array. $_wp_switched_stack

No Hooks.

Return

true/false. True if switched, false otherwise.

Usage

ms_is_switched();

Code of ms is switched: wp-includes/ms-blogs.php WP 5.2.1

<?php
function ms_is_switched() {
	return ! empty( $GLOBALS['_wp_switched_stack'] );
}