W3cubDocs

/WordPress

WP_Customize_Color_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) 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-color-control.php

public function __construct( $manager, $id, $args = array() ) {
		$this->statuses = array( '' => __( 'Default' ) );
		parent::__construct( $manager, $id, $args );
	}

Changelog

Version Description
3.4.0 Introduced.

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