WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
функция не описана

WP_Customize_Control::to_json() public WP 3.4.0

Refresh the parameters passed to the JavaScript via JSON.

{} Это метод класса: WP_Customize_Control{}

Хуков нет.

Возвращает

Null. Ничего.

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

$WP_Customize_Control = new WP_Customize_Control();
$WP_Customize_Control->to_json();

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

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

Код WP_Customize_Control::to_json() WP 5.5.3

<?php
public function to_json() {
	$this->json['settings'] = array();
	foreach ( $this->settings as $key => $setting ) {
		$this->json['settings'][ $key ] = $setting->id;
	}

	$this->json['type']           = $this->type;
	$this->json['priority']       = $this->priority;
	$this->json['active']         = $this->active();
	$this->json['section']        = $this->section;
	$this->json['content']        = $this->get_content();
	$this->json['label']          = $this->label;
	$this->json['description']    = $this->description;
	$this->json['instanceNumber'] = $this->instance_number;

	if ( 'dropdown-pages' === $this->type ) {
		$this->json['allow_addition'] = $this->allow_addition;
	}
}