WP_Customize_Control::json(): array
- Since
- 4.1.0
- Source
wp-includes/class-wp-customize-control.php:341
Gets the data to export to the client via JSON.
Return
array- Array of parameters passed to the JavaScript.
Uses · 1
- WP_Customize_Control::to_json()Refreshes the parameters passed to the JavaScript via JSON.
Used by · 4
- WP_Customize_Code_Editor_Control::json()Refresh the parameters passed to the JavaScript via JSON.
- WP_Customize_Date_Time_Control::json()Export data to JS.
- WP_Customize_Nav_Menu_Control::json()Return parameters for this control.
- WP_Customize_Nav_Menu_Item_Control::json()Return parameters for this control.
Source
public function json() { $this->to_json(); return $this->json; }History
Introduced in 4.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.8.8 tag, from
src/wp-includes/class-wp-customize-control.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.