WP_Customize_Nav_Menu_Control::json() WordPress Method

WP_Customize_Nav_Menu_Control::json() is a method of the WP_Customize_Nav_Menu_Control class. This method outputs the control's JSON representation.

WP_Customize_Nav_Menu_Control::json() #

Return parameters for this control.


Return

(array) Exported parameters.


Top ↑

Source

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

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

		return $exported;
	}


Top ↑

Changelog

Changelog
VersionDescription
4.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.