Uses
| Uses | Description |
|---|---|
| wp-includes/class-wp-customize-setting.php: WP_Customize_Setting::js_value() | Sanitize the setting’s value for use in JavaScript. |
Retrieves the data to export to the client via JSON.
(array) Array of parameters passed to JavaScript.
File: wp-includes/class-wp-customize-setting.php
public function json() {
return array(
'value' => $this->js_value(),
'transport' => $this->transport,
'dirty' => $this->dirty,
'type' => $this->type,
);
} | Version | Description |
|---|---|
| 4.6.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_setting/json