WP_Customize_Date_Time_Control::json()publicWP 4.9.0

Export data to JS.

Метод класса: WP_Customize_Date_Time_Control{}

Хуков нет.

Возвращает

Массив.

Использование

$WP_Customize_Date_Time_Control = new WP_Customize_Date_Time_Control();
$WP_Customize_Date_Time_Control->json();

Список изменений

С версии 4.9.0 Введена.

Код WP_Customize_Date_Time_Control::json() WP 6.1.1

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;
}