Uses
Uses | Description |
---|---|
wp-includes/class-wp-customize-section.php: WP_Customize_Section::json() | Gather the parameters passed to client JavaScript via JSON. |
Gather the parameters passed to client JavaScript via JSON.
(array) The array to be exported to the client as JSON.
File: wp-includes/customize/class-wp-customize-sidebar-section.php
public function json() { $json = parent::json(); $json['sidebarId'] = $this->sidebar_id; return $json; }
Version | Description |
---|---|
4.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_sidebar_section/json