WP_Customize_Setting::json()
Retrieves the data to export to the client via JSON.
Method of the class: WP_Customize_Setting{}
No Hooks.
Return
Array
. Array of parameters passed to JavaScript.
Usage
$WP_Customize_Setting = new WP_Customize_Setting(); $WP_Customize_Setting->json();
Changelog
Since 4.6.0 | Introduced. |
WP_Customize_Setting::json() WP Customize Setting::json code WP 6.5.2
public function json() { return array( 'value' => $this->js_value(), 'transport' => $this->transport, 'dirty' => $this->dirty, 'type' => $this->type, ); }