WP_Locale_Switcher::__construct()publicWP 4.7.0

Constructor.

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

Method of the class: WP_Locale_Switcher{}

No Hooks.

Return

null. Nothing (null).

Usage

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

Changelog

Since 4.7.0 Introduced.

WP_Locale_Switcher::__construct() code WP 6.5.2

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