W3cubDocs

/WordPress

apply_filters( ‘get_header_image_tag_attributes’, array $attr, object $header )

Filters the list of header image attributes.

Parameters

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

Source

$attr = apply_filters( 'get_header_image_tag_attributes', $attr, $header );

Changelog

Version Description
5.9.0 Introduced.

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