WP_Customize_Sidebar_Section::json
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 Customize Sidebar Section::json WP 6.8.3
public function json() {
$json = parent::json();
$json['sidebarId'] = $this->sidebar_id;
return $json;
}