WordPress at a glance
функция не описана

WP_Locale_Switcher::__construct() public WP 4.7.0

Constructor.

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

It's a method of the class: WP_Locale_Switcher{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

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

Changelog

Since 4.7.0 Introduced.

Код WP_Locale_Switcher::__construct() WP 5.5.1

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