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.


Top ↑

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()


Top ↑

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 );
	}


Top ↑

Changelog

Changelog
VersionDescription
4.9.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.