get_header_image_tag_attributes WordPress Filter Hook
The get_header_image_tag_attributes hook allows you to modify the attributes of the header image tag. This can be useful for adding a class or id to the tag, or for setting a width or height.
apply_filters( 'get_header_image_tag_attributes', array $attr , object $header ) #
Filters the list of header image attributes.
Parameters
- $attr
(array)Array of the attributes for the image tag.
- $header
(object)The custom header object returned by 'get_custom_header()'.
Source
File: wp-includes/theme.php
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |