Automattic\WooCommerce\Internal\ProductFeed\Feed

ProductMapperInterface::map_productpublicWC 1.0

Map a product to a feed row.

Method of the class: ProductMapperInterface{}

No Hooks.

Returns

Array. The feed row.

Usage

$ProductMapperInterface = new ProductMapperInterface();
$ProductMapperInterface->map_product( $product ): array;
$product(WC_Product) (required)
The product to map.

ProductMapperInterface::map_product() code WC 10.8.1

public function map_product( \WC_Product $product ): array;