On this page
WP_Locale::__construct()
Constructor which calls helper methods to set up object variables.
Source
File: wp-includes/class-wp-locale.php. View all references
public function __construct() {
$this->init();
$this->register_globals();
}
Related
Uses
| Uses | Description |
|---|---|
| WP_Locale::register_globals() wp-includes/class-wp-locale.php | Global variables are deprecated. |
| WP_Locale::init() wp-includes/class-wp-locale.php | Sets up the translated strings and object properties. |
Used By
| Used By | Description |
|---|---|
| WP_Locale_Switcher::change_locale() wp-includes/class-wp-locale-switcher.php | Changes the site’s locale to the given one. |
| wp_load_translations_early() wp-includes/load.php | Attempt an early load of translations. |
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_locale/__construct