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



restore_current_locale ›

Since4.7.0
已弃用n/a
restore_current_locale ( 没有参数 )
返回:
  • (string|false) Locale on success, false on error.
定义在:
文档:

Restores the translations according to the original locale.



源码

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

	return $wp_locale_switcher->restore_current_locale();
}