wpseek.com
A WordPress-centric search engine for devs and theme authors



ms_is_switched › WordPress Function

Since3.5.0
Deprecatedn/a
ms_is_switched ( No parameters )
Returns:
  • (bool) True if switched, false otherwise.
Defined at:
Codex:

Determines if switch_to_blog() is in effect.



Source

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