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.
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; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |