WP_Customize_Date_Time_Control::json
Export data to JS.
Method of the class: WP_Customize_Date_Time_Control{}
No Hooks.
Returns
Array.
Usage
$WP_Customize_Date_Time_Control = new WP_Customize_Date_Time_Control(); $WP_Customize_Date_Time_Control->json();
Changelog
| Since 4.9.0 | Introduced. |
WP_Customize_Date_Time_Control::json() WP Customize Date Time Control::json code WP 7.0
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;
}