WordPress at a glance
function is not described

WP_Customize_Media_Control::__construct() public WP 4.1.0

Constructor.

{} It's a method of the class: WP_Customize_Media_Control{}

No Hooks.

Return

null. Nothing.

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

  • See: WP_Customize_Control::__construct()

Changelog

Since 4.1.0 Introduced.
Since 4.2.0 Moved from WP_Customize_Upload_Control.

Code of WP_Customize_Media_Control::__construct() WP 5.7.2

<?php
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() );
}