WP_Locale_Switcher::__construct
Constructor.
Stores the original locale as well as a list of all available languages.
Method of the class: WP_Locale_Switcher{}
No Hooks.
Returns
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() WP Locale Switcher:: construct code WP 6.9.1
public function __construct() {
$this->original_locale = determine_locale();
$this->available_languages = array_merge( array( 'en_US' ), get_available_languages() );
}