WP_Locale_Switcher::__construct

Advertisement

Summery Summery

Constructor.

Syntax Syntax

WP_Locale_Switcher::__construct()

Description Description

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

Source Source

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.