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

Custom_Image_Header::get_uploaded_header_images() public WP 3.9.0

Gets the previously uploaded header images.

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

Хуков нет.

Возвращает

Массив. Uploaded header images.

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

$Custom_Image_Header = new Custom_Image_Header();
$Custom_Image_Header->get_uploaded_header_images();

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

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

Код Custom_Image_Header::get_uploaded_header_images() WP 5.5.1

wp-admin/includes/class-custom-image-header.php
<?php
public function get_uploaded_header_images() {
	$header_images = get_uploaded_header_images();
	$timestamp_key = '_wp_attachment_custom_header_last_used_' . get_stylesheet();
	$alt_text_key  = '_wp_attachment_image_alt';

	foreach ( $header_images as &$header_image ) {
		$header_meta               = get_post_meta( $header_image['attachment_id'] );
		$header_image['timestamp'] = isset( $header_meta[ $timestamp_key ] ) ? $header_meta[ $timestamp_key ] : '';
		$header_image['alt_text']  = isset( $header_meta[ $alt_text_key ] ) ? $header_meta[ $alt_text_key ] : '';
	}

	return $header_images;
}