WP_Customize_Nav_Menu_Item_Control::__construct() WordPress Method
The WP_Customize_Nav_Menu_Item_Control::__construct() method is used to create a new customizer control for a nav menu item. This control allows you to modify the properties of a nav menu item, such as the label, URL, and title.
WP_Customize_Nav_Menu_Item_Control::__construct( WP_Customize_Manager $manager, string $id, array $args = array() ) #
Constructor.
Description
See also
Parameters
- $manager
(WP_Customize_Manager)(Required)Customizer bootstrap instance.
- $id
(string)(Required)The control ID.
- $args
(array)(Optional) Arguments to override class property defaults. See WP_Customize_Control::__construct() for information on accepted arguments.
Default value: array()
Source
File: wp-includes/customize/class-wp-customize-nav-menu-item-control.php
public function __construct( $manager, $id, $args = array() ) { parent::__construct( $manager, $id, $args ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |