根据原始语言环境恢复翻译。
原型
restore_current_locale()
返回值
(string|false)
成功时的区域设置,错误时出错。
源文件
路径:wp-includes/l10n.php
<?php
...
function restore_current_locale() {
/* @var WP_Locale_Switcher $wp_locale_switcher */
global $wp_locale_switcher;
return $wp_locale_switcher->restore_current_locale();
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/restore_current_locale/