WP_Customize_Sidebar_Section::json() WordPress Method

The WP_Customize_Sidebar_Section::json() method is used to return a JSON representation of a sidebar section. This is used to make sidebars more easily configurable using the WordPress Customizer.

WP_Customize_Sidebar_Section::json() #

Gather the parameters passed to client JavaScript via JSON.


Return

(array) The array to be exported to the client as JSON.


Top ↑

Source

File: wp-includes/customize/class-wp-customize-sidebar-section.php

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


Top ↑

Changelog

Changelog
VersionDescription
4.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.