Calculate width and height based on what the currently selected theme supports.
Custom_Image_Header::show_header_selector
Display UI for selecting one of several default headers.
Custom_Image_Header::create_attachment_object
Create an attachment ‘object’.
Custom_Image_Header::__construct
Constructor – Register administration header callback.
Advertisement
Custom_Image_Header::init
Set up the hooks for the Custom Header admin page.
Custom_Image_Header::help
Adds contextual help.
Custom_Image_Header::step
Get the current step.
Custom_Image_Header::js_includes
Set up the enqueue for the JavaScript files.
Advertisement
Custom_Image_Header::css_includes
Set up the enqueue for the CSS files
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.
Custom_Image_Header::ajax_header_add
Given an attachment ID for a header image, updates its “last used” timestamp to now.
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.
Advertisement
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::get_default_header_images
Gets the details of default header images if defined.
Custom_Image_Header::get_uploaded_header_images
Gets the previously uploaded header images.