函数原型
restore_current_locale(): string|false
函数描述
Restores the translations according to the original locale.
是否弃用
未弃用
函数参数
无
函数返回值
string|false Locale on success, false on error.
函数位置
File: wp-includes/l10n.php.
函数源码
function restore_current_locale() {
/* @var WP_Locale_Switcher $wp_locale_switcher */
global $wp_locale_switcher;
return $wp_locale_switcher->restore_current_locale();
}
源码链接
变更日志
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |

