Core Function
View Source on Trac ↗ get_header_image_tag()
get_header_image_tag( mixed $attr = array() ) Creates image tag markup for a custom header image.
Parameters 1 required
| Name / Type | Description |
|---|---|
| array | $attr Optional. Additional attributes for the image tag. Can be used to override the default attributes. Default empty. Required |
Return Value
(string)
HTML image element markup or empty string on failure.
Function Information
Since Version
4.4.0
Source File
wp-includes/theme.php
Advertisement