W3cubDocs

/WordPress

WP_Customize_New_Menu_Control::__construct( WP_Customize_Manager $manager, string $id, array $args = array() )

This method has been deprecated. Use WP_Customize_Control::__construct() instead.

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-new-menu-control.php

public function __construct( WP_Customize_Manager $manager, $id, array $args = array() ) {
		_deprecated_function( __METHOD__, '4.9.0' );
		parent::__construct( $manager, $id, $args );
	}

Changelog

Version Description
4.9.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_new_menu_control/__construct