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



is_locale_switched › WordPress Function

Since4.7.0
Deprecatedn/a
is_locale_switched ( No parameters )
Returns:
  • (bool) True if the locale has been switched, false otherwise.
Defined at:
Codex:

Determines whether switch_to_locale() is in effect.



Source

function is_locale_switched() {
	/* @var WP_Locale_Switcher $wp_locale_switcher */
	global $wp_locale_switcher;

	return $wp_locale_switcher->is_switched();
}