3 * Customize API: WP_Customize_Sidebar_Section class
6 * @subpackage Customize
11 * Customizer section representing widget area (sidebar).
15 * @see WP_Customize_Section
17 class WP_Customize_Sidebar_Section extends WP_Customize_Section {
20 * Type of this section.
26 public $type = 'sidebar';
38 * Gather the parameters passed to client JavaScript via JSON.
42 * @return array The array to be exported to the client as JSON.
44 public function json() {
45 $json = parent::json();
46 $json['sidebarId'] = $this->sidebar_id;
51 * Whether the current sidebar is rendered on the page.
56 * @return bool Whether sidebar is rendered.
58 public function active_callback() {
59 return $this->manager->widgets->is_sidebar_rendered( $this->sidebar_id );