get_header_image_tag_attributes

get_header_image_tag_attributes

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('get_header_image_tag_attributes') is found 1 times:

  • /wp-includes/theme.php line 1340
    	 *
    	 * @param array  $attr   Array of the attributes for the image tag.
    	 * @param object $header The custom header object returned by 'get_custom_header()'.
    	 */
    	$attr = apply_filters( 'get_header_image_tag_attributes', $attr, $header );
    
    	$attr = array_map( 'esc_attr', $attr );
    	$html = '<img';
    
    	foreach ( $attr as $name => $value ) {
    		$html .= ' ' . $name . '="' . $value . '"';