WP_Locale_Switcher::__construct()

In this article

Constructor.

Description

Stores the original locale as well as a list of all available languages.

Source

public function __construct() {
	$this->original_locale     = determine_locale();
	$this->available_languages = array_merge( array( 'en_US' ), get_available_languages() );
}

Changelog

VersionDescription
4.7.0Introduced.

User Contributed Notes

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