Automattic\WooCommerce\Internal\ProductFeed\Mapping
ProductShapeMapperInterface::map_product
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() ProductShapeMapperInterface::map product code WC 11.0.0
public function map_product( \WC_Product $product ): array;