wpseek.com
WordPress开发者和主题制作者的搜索引擎



is_locale_switched › WordPress Function

Since4.7.0
已弃用n/a
is_locale_switched ( 没有参数 )
返回:
  • (bool) True if the locale has been switched, false otherwise.
定义在:
文档:

Determines whether switch_to_locale() is in effect.



源码

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

	return $wp_locale_switcher->is_switched();
}