Determines if switch_to_blog() is in effect.
function ms_is_switched() {
return ! empty( $GLOBALS['_wp_switched_stack'] );
}
| Version | Description |
|---|---|
| 3.5.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/ms_is_switched