WordPress at Your Fingertips
function is not described

wc_get_attachment_image_attributes() WC 1.0

Get attachment image attributes.

No Hooks.

Return

Array.

Usage

wc_get_attachment_image_attributes( $attr );
$attr(array) (required)
Image attributes.

Code of wc_get_attachment_image_attributes() WC 5.5.2

<?php
function wc_get_attachment_image_attributes( $attr ) {
	if ( isset( $attr['src'] ) && strstr( $attr['src'], 'woocommerce_uploads/' ) ) {
		$attr['src'] = wc_placeholder_img_src();

		if ( isset( $attr['srcset'] ) ) {
			$attr['srcset'] = '';
		}
	}
	return $attr;
}