WP_Widget_Area_Customize_Control::to_json()publicWP 3.9.0

Refreshes the parameters passed to the JavaScript via JSON.

Method of the class: WP_Widget_Area_Customize_Control{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_Widget_Area_Customize_Control = new WP_Widget_Area_Customize_Control();
$WP_Widget_Area_Customize_Control->to_json();

Changelog

Since 3.9.0 Introduced.

WP_Widget_Area_Customize_Control::to_json() code WP 6.5.2

public function to_json() {
	parent::to_json();
	$exported_properties = array( 'sidebar_id' );
	foreach ( $exported_properties as $key ) {
		$this->json[ $key ] = $this->$key;
	}
}