函数原型
is_locale_switched(): bool
函数描述
Determines whether switch_to_locale() is in effect.
是否弃用
未弃用
函数参数
无
函数返回值
bool True if the locale has been switched, false otherwise.
函数位置
File: wp-includes/l10n.php.
函数源码
function is_locale_switched() {
/* @var WP_Locale_Switcher $wp_locale_switcher */
global $wp_locale_switcher;
return $wp_locale_switcher->is_switched();
}
源码链接
变更日志
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |

