ms_is_switched()

Determines if switch_to_blog() is in effect


Description Description


Return Return

(bool) True if switched, false otherwise.


Top ↑

Source Source

File: wp-includes/ms-blogs.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
3.5.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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