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.2

apply_filters('get_header_image_tag_attributes') is found 1 times:

  • /wp-includes/theme.php line 1340
    1336
    1337
    1338
    1339
    1340
    1341
    1342
    1343
    1344
    1345
    1346
    *
     * @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 . '"';