WordPress at a glance
function is not described

restore_previous_locale() WP 4.7.0

Restores the translations according to the previous locale.

  • Global. WP_Locale_Switcher. $wp_locale_switcher

No Hooks.

Return

String/false. Locale on success, false on error.

Usage

restore_previous_locale();

Code of restore previous locale: wp-includes/l10n.php WP 5.2.2

<?php
function restore_previous_locale() {
	/* @var WP_Locale_Switcher $wp_locale_switcher */
	global $wp_locale_switcher;

	return $wp_locale_switcher->restore_previous_locale();
}