Automattic\WooCommerce\Internal\ProductFeed\Mapping

ProductShapeMapperInterface::map_product │ public │ WC 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.1.2

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