WP_Customize_Media_Control::__construct()publicWP 4.1.0

Constructor.

Method of the class: WP_Customize_Media_Control{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_Customize_Media_Control = new WP_Customize_Media_Control();
$WP_Customize_Media_Control->__construct( $manager, $id, $args );
$manager(WP_Customize_Manager) (required)
Customizer bootstrap instance.
$id(string) (required)
Control ID.
$args(array)
Arguments to override class property defaults. See WP_Customize_Control::__construct() for information on accepted arguments.
Default: empty array

Notes

Changelog

Since 4.1.0 Introduced.
Since 4.2.0 Moved from WP_Customize_Upload_Control.

WP_Customize_Media_Control::__construct() code WP 6.5.2

public function __construct( $manager, $id, $args = array() ) {
	parent::__construct( $manager, $id, $args );

	$this->button_labels = wp_parse_args( $this->button_labels, $this->get_default_button_labels() );
}