restore_current_locale

函数


restore_current_locale ( No parameters )
返回值
  • (string|false) Locale on success, false on error.
定义位置
  • wp-includes/l10n.php
    , line 1695
引入
4.7.0
弃用

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();
}