ms_is_switched(): bool

In this article

Determines if switch_to_blog() is in effect.

Return

bool True if switched, false otherwise.

Source

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

Changelog

VersionDescription
3.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.