WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Customize_Header_Image_Control::prepare_control() public WP 1.0

Это метод класса: WP_Customize_Header_Image_Control{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

$WP_Customize_Header_Image_Control = new WP_Customize_Header_Image_Control();
$WP_Customize_Header_Image_Control->prepare_control();

Заметки

  • Global. Custom_Image_Header. $custom_image_header

Код WP_Customize_Header_Image_Control::prepare_control() WP 5.5.1

wp-includes/customize/class-wp-customize-header-image-control.php
<?php
public function prepare_control() {
	global $custom_image_header;
	if ( empty( $custom_image_header ) ) {
		return;
	}

	add_action( 'customize_controls_print_footer_scripts', array( $this, 'print_header_image_template' ) );

	// Process default headers and uploaded headers.
	$custom_image_header->process_default_headers();
	$this->default_headers  = $custom_image_header->get_default_header_images();
	$this->uploaded_headers = $custom_image_header->get_uploaded_header_images();
}