Automattic\WooCommerce\Internal\ProductFeed\Mapping

ProductShapeMapperInterface::map_productpublicWC 1.0

Map a product to an array shape.

Method of the class: ProductShapeMapperInterface{}

No Hooks.

Returns

Array. The mapped product data.

Usage

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

ProductShapeMapperInterface::map_product() code WC 11.0.0

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