WP_Locale_Switcher::__construct()

Constructor.


Description

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


Source

File: wp-includes/class-wp-locale-switcher.php

	public function __construct() {
		$this->original_locale     = is_admin() ? get_user_locale() : get_locale();
		$this->available_languages = array_merge( array( 'en_US' ), get_available_languages() );
	}


Changelog

Changelog
Version Description
WP-4.7.0 Introduced.