WP_Widget_Area_Customize_Control::to_json()
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() WP Widget Area Customize Control::to json code WP 6.6.1
public function to_json() { parent::to_json(); $exported_properties = array( 'sidebar_id' ); foreach ( $exported_properties as $key ) { $this->json[ $key ] = $this->$key; } }