wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



restore_current_locale › WordPress Function

Da4.7.0
Deprecaton/a
restore_current_locale ( Nessun parametro )
Ritorna:
  • (string|false) Locale on success, false on error.
Definito a:
Codex:

Restores the translations according to the original locale.



Sorgenti

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

	if ( ! $wp_locale_switcher ) {
		return false;
	}

	return $wp_locale_switcher->restore_current_locale();
}