ms_is_switched()WP 3.5.0

No Hooks.

Return

true|false. True if switched, false otherwise.

Usage

ms_is_switched();

Notes

  • Global. Array. $_wp_switched_stack

Changelog

Since 3.5.0 Introduced.

Code of ms_is_switched() WP 6.0

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