WordPress at a glance
function is not described

WP_Locale_Switcher::restore_current_locale() public WP 4.7.0

Restores the translations according to the original locale.

{} It's a method of the class: WP_Locale_Switcher{}

No Hooks.

Return

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

Usage

$WP_Locale_Switcher = new WP_Locale_Switcher();
$WP_Locale_Switcher->restore_current_locale();

Changelog

Since 4.7.0 Introduced.

Code of WP_Locale_Switcher::restore_current_locale() WP 5.5.1

<?php
public function restore_current_locale() {
	if ( empty( $this->locales ) ) {
		return false;
	}

	$this->locales = array( $this->original_locale );

	return $this->restore_previous_locale();
}