Determines if switch_to_blog() is in effect.
Source
function ms_is_switched() {
return ! empty( $GLOBALS['_wp_switched_stack'] );
}
Changelog
| Version | Description |
|---|---|
| 3.5.0 | Introduced. |
Determines if switch_to_blog() is in effect.
function ms_is_switched() {
return ! empty( $GLOBALS['_wp_switched_stack'] );
}
| Version | Description |
|---|---|
| 3.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.