Custom_Image_Header::get_uploaded_header_images(): array
- Since
- 3.9.0
- Source
wp-admin/includes/class-custom-image-header.php:1586
Gets the previously uploaded header images.
Return
array- Uploaded header images.
Uses · 3
- get_uploaded_header_images()Gets the header images uploaded for the active theme.
- get_stylesheet()Retrieves name of the current stylesheet.
- get_post_meta()Retrieves a post meta field for the given post ID.
Used by · 1
- Custom_Image_Header::get_previous_crop()Gets the ID of a previous crop from the same base image.
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.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 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.