WP_Translation_Controller::get_localepublicWP 6.5.0

Returns the current locale.

Метод класса: WP_Translation_Controller{}

Хуков нет.

Возвращает

Строку. Locale.

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

$WP_Translation_Controller = new WP_Translation_Controller();
$WP_Translation_Controller->get_locale(): string;

Список изменений

С версии 6.5.0 Введена.

Код WP_Translation_Controller::get_locale() WP 6.8.3

public function get_locale(): string {
	return $this->current_locale;
}