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'
Return Return
(string)
Source Source
File: packages/woocommerce-blocks/src/BlockTypes/FeaturedProduct.php