W3cubDocs

/WordPress

WP_Customize_Nav_Menu_Item_Control::json()

Return parameters for this control.

Return

(array) Exported parameters.

Source

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

public function json() {
		$exported                 = parent::json();
		$exported['menu_item_id'] = $this->setting->post_id;

		return $exported;
	}

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_item_control/json