Create an attachment ‘object’.
Custom_Image_Header::insert_attachment
Insert an attachment and its metadata.
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::js_2
Display JavaScript based on Step 2.
Advertisement
Custom_Image_Header::step_1
Display first step of custom header image page.
Custom_Image_Header::step_2
Display second step of custom header image page.
Custom_Image_Header::step_2_manage_upload
Upload the file to be cropped in the second step.
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::take_action
Execute custom header modification.
Custom_Image_Header::process_default_headers
Process the default headers