ms_is_switched()
Determines if switch_to_blog() is in effect.
No Hooks.
Returns
bool. True if switched, false otherwise.
Usage
ms_is_switched();
Notes
Global. Array. $_wp_switched_stack |
Changelog
| Since 3.5.0 | Introduced. |
ms_is_switched() ms is switched code WP 7.1.2
function ms_is_switched() {
return ! empty( $GLOBALS['_wp_switched_stack'] );
}