Warning: This method has been deprecated.
WP_Customize_New_Menu_Section::__construct() WordPress Method
The WP_Customize_New_Menu_Section::__construct() method is used to create a new custom menu section for the WordPress Customizer. This section will allow you to add, edit, and delete custom menus from the Customizer interface.
WP_Customize_New_Menu_Section::__construct( WP_Customize_Manager $manager, string $id, array $args = array() ) #
Constructor.
Description
Any supplied $args override class property defaults.
Parameters
- $manager
(WP_Customize_Manager)(Required)Customizer bootstrap instance.
- $id
(string)(Required)A specific ID of the section.
- $args
(array)(Optional)Section arguments.
Default value: array()
Source
File: wp-includes/customize/class-wp-customize-new-menu-section.php
public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) { _deprecated_function( __METHOD__, '4.9.0' ); parent::__construct( $manager, $id, $args ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.9.0 | Introduced. |