wppaste
WordPress

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

Used by · 1

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.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 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.