WP_Customize_Header_Image_Control::__construct() WordPress Method

The WP_Customize_Header_Image_Control::__construct( $manager, $id, $args = array() ) method is used to construct a new header image control. The header image control allows a user to upload and manage header images for a WordPress site.

WP_Customize_Header_Image_Control::__construct( WP_Customize_Manager $manager ) #

Constructor.


Parameters

$manager

(WP_Customize_Manager)(Required)Customizer bootstrap instance.


Top ↑

Source

File: wp-includes/customize/class-wp-customize-header-image-control.php

	public function __construct( $manager ) {
		parent::__construct(
			$manager,
			'header_image',
			array(
				'label'    => __( 'Header Image' ),
				'settings' => array(
					'default' => 'header_image',
					'data'    => 'header_image_data',
				),
				'section'  => 'header_image',
				'removed'  => 'remove-header',
				'get_url'  => 'get_header_image',
			)
		);

	}


Top ↑

Changelog

Changelog
VersionDescription
3.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.