Custom_Image_Header::get_uploaded_header_images
Gets the previously uploaded header images.
Method of the class: Custom_Image_Header{}
No Hooks.
Returns
array. Uploaded header images.
Usage
$Custom_Image_Header = new Custom_Image_Header(); $Custom_Image_Header->get_uploaded_header_images();
Changelog
| Since 3.9.0 | Introduced. |
Custom_Image_Header::get_uploaded_header_images() Custom Image Header::get uploaded header images code WP 7.1.3
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_image['timestamp'] = get_post_meta( $header_image['attachment_id'], $timestamp_key, true );
$header_image['alt_text'] = get_post_meta( $header_image['attachment_id'], $alt_text_key, true );
}
return $header_images;
}