get_header_image_tag WordPress Filter Hook
The get_header_image_tag hook allows you to change the default header image tag. This can be useful if you want to change the image size or add a custom class to the image.
apply_filters( 'get_header_image_tag', string $html , object $header , array $attr ) #
Filters the markup of header images.
Parameters
- $html
(string)The HTML image tag markup being filtered.
- $header
(object)The custom header object returned by 'get_custom_header()'.
- $attr
(array)Array of the attributes for the image tag.
Source
File: wp-includes/theme.php
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |