FeaturedProduct::get_image( WC_Product $product, string $size = 'full' )

Returns the main product image URL.


Description Description


Parameters Parameters

$product

(Required) Product object.

$size

(Optional) Image size, defaults to 'full'.

Default value: 'full'


Top ↑

Return Return

(string)


Top ↑

Source Source

File: packages/woocommerce-blocks/src/BlockTypes/FeaturedProduct.php




Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.