WP_Locale::register_globals
Deprecated since For backward compatibility only.. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Global variables are deprecated.
For backward compatibility only.
Method of the class: WP_Locale{}
No Hooks.
Returns
null. Nothing (null).
Usage
global $wp_locale; $wp_locale->register_globals();
Notes
- Global. Array. $weekday
- Global. Array. $weekday_initial
- Global. Array. $weekday_abbrev
- Global. Array. $month
- Global. Array. $month_abbrev
Changelog
| Since 2.1.0 | Introduced. |
| Deprecated | For backward compatibility only. |
WP_Locale::register_globals() WP Locale::register globals code WP 6.8.3
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;
}