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

Custom_Image_Header::__construct() public WP 2.1.0

Constructor - Register administration header callback.

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

Хуков нет.

Возвращает

Null. Ничего.

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

$Custom_Image_Header = new Custom_Image_Header();
$Custom_Image_Header->__construct( $admin_header_callback, $admin_image_div_callback );
$admin_header_callback(callable) (обязательный)
$admin_image_div_callback(callable)
Optional custom image div output callback.
По умолчанию: ''

Список изменений

С версии 2.1.0 Введена.

Код Custom Image Header:: construct: wp-admin/includes/class-custom-image-header.php WP 5.5.1

<?php
public function __construct( $admin_header_callback, $admin_image_div_callback = '' ) {
	$this->admin_header_callback    = $admin_header_callback;
	$this->admin_image_div_callback = $admin_image_div_callback;

	add_action( 'admin_menu', array( $this, 'init' ) );

	add_action( 'customize_save_after', array( $this, 'customize_set_last_used' ) );
	add_action( 'wp_ajax_custom-header-crop', array( $this, 'ajax_header_crop' ) );
	add_action( 'wp_ajax_custom-header-add', array( $this, 'ajax_header_add' ) );
	add_action( 'wp_ajax_custom-header-remove', array( $this, 'ajax_header_remove' ) );
}