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.


Top ↑

Source

File: wp-includes/theme.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More