WP_Locale::__construct() WordPress Method

The WP_Locale::__construct() function allows you to create a new locale object. A locale is a collection of data related to a specific language and region. This function takes two arguments: 1. $domain - The domain for which this locale applies. 2. $locale - The locale code for this locale object.

WP_Locale::__construct() #

Constructor which calls helper methods to set up object variables.


Source

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

	public function __construct() {
		$this->init();
		$this->register_globals();
	}


Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.