get_custom_logo_image_attributes

get_custom_logo_image_attributes

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('get_custom_logo_image_attributes') is found 1 times:

  • /wp-includes/general-template.php line 1103
    1099
    1100
    1101
    1102
    1103
    1104
    1105
    1106
    1107
    1108
    1109
    * @param array $custom_logo_attr Custom logo image attributes.
     * @param int   $custom_logo_id   Custom logo attachment ID.
     * @param int   $blog_id          ID of the blog to get the custom logo for.
     */
    $custom_logo_attr = apply_filters( 'get_custom_logo_image_attributes', $custom_logo_attr, $custom_logo_id, $blog_id );
     
    /*
     * If the alt attribute is not empty, there's no need to explicitly pass it
     * because wp_get_attachment_image() already adds the alt attribute.
     */
    $image = wp_get_attachment_image( $custom_logo_id, 'full', false, $custom_logo_attr );