WP_Locale_Switcher::restore_current_locale(): string|false

In this article

Restores the translations according to the original locale.

Return

string|false Locale on success, false on failure.

Source

public function restore_current_locale() {
	if ( empty( $this->stack ) ) {
		return false;
	}

	$this->stack = array( array( $this->original_locale, false ) );

	return $this->restore_previous_locale();
}

Changelog

VersionDescription
4.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.