WordPress at a glance
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Schemas

ProductSchema::get_images() protected WC 1.0

Get list of product images.

{} It's a method of the class: ProductSchema{}

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_images( \WC_Product $product );
\WC_Product $product (required)
-

Code of ProductSchema::get_images() WC 5.0.0

<?php
protected function get_images( \WC_Product $product ) {
	$attachment_ids = array_merge( [ $product->get_image_id() ], $product->get_gallery_image_ids() );

	return array_filter( array_map( [ $this->image_attachment_schema, 'get_item_response' ], $attachment_ids ) );
}