Automattic\WooCommerce\Blocks\BlockTypes

FeaturedItem::get_item_image()protectedWC 1.0

Returns the featured item image URL.

Method of the class: FeaturedItem{}

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_item_image( $item, $size );
$item(\WP_Term|\WC_Product) (required)
Item object.
$size(string)
Image size.
Default: 'full'

FeaturedItem::get_item_image() code WC 9.4.2

abstract protected function get_item_image( $item, $size = 'full' );