Summery Summery

Choose a header image, selected from existing uploaded and default headers, or provide an array of uploaded header data (either new, or from media library).

Syntax Syntax

Custom_Image_Header::set_header_image( mixed $choice )

Parameters Parameters


(Required) Which header image to select. Allows for values of 'random-default-image', for randomly cycling among the default images; 'random-uploaded-image', for randomly cycling among the uploaded images; the key of a default image registered for that theme; and the key of an image uploaded for that theme (the attachment ID of the image). Or an array of arguments: attachment_id, url, width, height. All are required.

Source Source

File: wp-admin/custom-header.php



Changelog Changelog

Version Description
3.4.0 Introduced.


Leave a Reply