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();
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |