WP_Customize_Sidebar_Section::json()publicWP 4.1.0

Gather the parameters passed to client JavaScript via JSON.

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.

WP_Customize_Sidebar_Section::json() code WP 6.5.2

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