WP_Customize_Date_Time_Control::json(): array
- Since
- 4.9.0
- Source
wp-includes/customize/class-wp-customize-date-time-control.php:81
Export data to JS.
Return
array
Uses · 1
- WP_Customize_Control::json()Gets the data to export to the client via JSON.
Used by · 1
- WP_Customize_Date_Time_Control::content_template()Renders a JS template for the content of date time control.
Source
public function json() { $data = parent::json(); $data['maxYear'] = (int) $this->max_year; $data['minYear'] = (int) $this->min_year; $data['allowPastDate'] = (bool) $this->allow_past_date; $data['twelveHourFormat'] = (bool) $this->twelve_hour_format; $data['includeTime'] = (bool) $this->include_time; return $data; }History
Introduced in 4.9.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, from
src/wp-includes/customize/class-wp-customize-date-time-control.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.