wp_get_attachment_image

wp_get_attachment_image

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('wp_get_attachment_image') is found 1 times:

  • /wp-includes/media.php line 1190
    1186
    1187
    1188
    1189
    1190
    1191
    1192
    1193
    1194
    1195
    1196
         * @param bool         $icon          Whether the image should be treated as an icon.
         * @param string[]     $attr          Array of attribute values for the image markup, keyed by attribute name.
         *                                    See wp_get_attachment_image().
         */
        return apply_filters( 'wp_get_attachment_image', $html, $attachment_id, $size, $icon, $attr );
    }
     
    /**
     * Gets the URL of an image attachment.
     *
     * @since 4.4.0