WP_Customize_Sidebar_Section::json()publicWP 4.1.0

Gather the parameters passed to client JavaScript via JSON.

{} It's a method of the class: WP_Customize_Sidebar_Section{}

No Hooks.

Return

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.

Code of WP_Customize_Sidebar_Section::json() WP 6.0

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