W3cubDocs

/WordPress

WP_Locale::register_globals()

Global variables are deprecated.

Description

For backward compatibility only.

Source

public function register_globals() {
	$GLOBALS['weekday']         = $this->weekday;
	$GLOBALS['weekday_initial'] = $this->weekday_initial;
	$GLOBALS['weekday_abbrev']  = $this->weekday_abbrev;
	$GLOBALS['month']           = $this->month;
	$GLOBALS['month_abbrev']    = $this->month_abbrev;
}

Changelog

Version Description
2.1.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_locale/register_globals