GC_Customize_Media_Control::__construct()
最后更新于:2021-11-27 03:34:49
GC_Customize_Media_Control::__construct( GC_Customize_Manager$manager, string$id, array$args=array())Constructor.
参数
- $manager
-
(GC_Customize_Manager) (Required) Customizer bootstrap instance.
- $id
-
(string) (Required) Control ID.
- $args
-
(array) (Optional) Arguments to override class property defaults. See GC_Customize_Control::__construct() for information on accepted arguments.
Default value: array()
源文件
文件: gc-includes/customize/class-gc-customize-media-control.php
public function __construct( $manager, $id, $args = array() ) {
parent::__construct( $manager, $id, $args );
$this->button_labels = gc_parse_args( $this->button_labels, $this->get_default_button_labels() );
}