W3cubDocs

/WordPress

WP_Customize_Nav_Menu_Location_Control::to_json()

Refresh the parameters passed to JavaScript via JSON.

Description

See also

Source

File: wp-includes/customize/class-wp-customize-nav-menu-location-control.php

public function to_json() {
		parent::to_json();
		$this->json['locationId'] = $this->location_id;
	}

Changelog

Version Description
4.3.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_nav_menu_location_control/to_json