WP_Customize_Sidebar_Section::json
Gather the parameters passed to client JavaScript via JSON.
Method of the class: WP_Customize_Sidebar_Section{}
No Hooks.
Returns
Array. The array to be exported to the client as JSON.
Usage
$WP_Customize_Sidebar_Section = new WP_Customize_Sidebar_Section(); $WP_Customize_Sidebar_Section->json();
Changelog
| Since 4.1.0 | Introduced. |
WP_Customize_Sidebar_Section::json() WP Customize Sidebar Section::json code WP 7.0
public function json() {
$json = parent::json();
$json['sidebarId'] = $this->sidebar_id;
return $json;
}