W3cubDocs

/WordPress

apply_filters( ‘get_header_image_tag’, string $html, object $header, array $attr )

Filters the markup of header images.

Parameters

$htmlstring
The HTML image tag markup being filtered.
$headerobject
The custom header object returned by ‘get_custom_header() ‘.
$attrarray
Array of the attributes for the image tag.

Source

return apply_filters( 'get_header_image_tag', $html, $header, $attr );

Changelog

Version Description
4.4.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_header_image_tag