Gets the details of default header images if defined.
Custom_Image_Header::customize_set_last_used
Updates the last-used postmeta on a header image attachment after saving a new header image via the Customizer.
Custom_Image_Header::ajax_header_remove
Given an attachment ID for a header image, unsets it as a user-uploaded header image for the current theme.
Custom_Image_Header::ajax_header_add
Given an attachment ID for a header image, updates its “last used” timestamp to now.
Advertisement
Custom_Image_Header::ajax_header_crop
Gets attachment uploaded by Media Manager, crops it, then saves it as a new object. Returns JSON-encoded object details.
wp_header_image_attachment_metadata
Filters the header image attachment metadata.
Custom_Image_Header::insert_attachment
Insert an attachment and its metadata.
Custom_Image_Header::get_header_dimensions
Calculate width and height based on what the currently selected theme supports.
Advertisement
Custom_Image_Header::create_attachment_object
Create an attachment ‘object’.