WordPress at a glance
function is not described

WP_Customize_Nav_Menu_Control::json() public WP 4.3.0

Return parameters for this control.

{} It's a method of the class: WP_Customize_Nav_Menu_Control{}

No Hooks.

Return

Array. Exported parameters.

Usage

$WP_Customize_Nav_Menu_Control = new WP_Customize_Nav_Menu_Control();
$WP_Customize_Nav_Menu_Control->json();

Changelog

Since 4.3.0 Introduced.

Code of WP_Customize_Nav_Menu_Control::json() WP 5.7.2

<?php
public function json() {
	$exported            = parent::json();
	$exported['menu_id'] = $this->setting->term_id;

	return $exported;
}