ms_is_switched()
Determines if switch_to_blog() is in effect
Return
(bool) True if switched, false otherwise.
Source
File: wp-includes/ms-blogs.php
function ms_is_switched() {
return ! empty( $GLOBALS['_wp_switched_stack'] );
}
Changelog
Version | Description |
---|---|
WP-3.5.0 | Introduced. |