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()'.


Top ↑

Source

File: wp-includes/theme.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.9.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