WP_Customize_Sidebar_Section::json()publicWP 4.1.0

Gather the parameters passed to client JavaScript via JSON.

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

Хуков нет.

Возвращает

Массив. The array to be exported to the client as JSON.

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

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

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

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

Код WP_Customize_Sidebar_Section::json() WP 6.5.2

public function json() {
	$json              = parent::json();
	$json['sidebarId'] = $this->sidebar_id;
	return $json;
}