WP_Customize_Nav_Menu_Control::json()
Return parameters for this control.
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. |
WP_Customize_Nav_Menu_Control::json() WP Customize Nav Menu Control::json code WP 6.6.2
public function json() { $exported = parent::json(); $exported['menu_id'] = $this->setting->term_id; return $exported; }