WP_Customize_Background_Image_Control::__construct() WordPress Method
The WP_Customize_Background_Image_Control::__construct() method allows a user to control the background image for a WordPress site. This method is called when the user initializes the customizer.
WP_Customize_Background_Image_Control::__construct( WP_Customize_Manager $manager ) #
Constructor.
Parameters
- $manager
(WP_Customize_Manager)(Required)Customizer bootstrap instance.
Source
File: wp-includes/customize/class-wp-customize-background-image-control.php
public function __construct( $manager ) {
parent::__construct(
$manager,
'background_image',
array(
'label' => __( 'Background Image' ),
'section' => 'background_image',
)
);
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |