wppaste
WordPress

Custom_Image_Header::get_uploaded_header_images(): array

Since
3.9.0
Source
wp-admin/includes/class-custom-image-header.php:1580
Gets the previously uploaded header images.

Return

array
Uploaded header images.

Uses · 3

Used by · 1

Source

	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'] = $header_meta[ $timestamp_key ] ?? '';			$header_image['alt_text']  = $header_meta[ $alt_text_key ] ?? '';		} 		return $header_images;	}

History

Introduced in 3.9.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.0.4 tag, from src/wp-admin/includes/class-custom-image-header.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.