Refresh the parameters passed to JavaScript via JSON.
public function to_json() {
parent::to_json();
$this->json['locationId'] = $this->location_id;
}
| Version | Description |
|---|---|
| 4.3.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_nav_menu_location_control/to_json