Automattic\WooCommerce\Internal\ProductFeed\Feed

ProductMapperInterface{}interfaceWC 10.5.0

Product Mapper Interface.

No Hooks.

Usage

$ProductMapperInterface = new ProductMapperInterface();
// use class methods

Methods

  1. public map_product( \WC_Product $product )

Changelog

Since 10.5.0 Introduced.

ProductMapperInterface{} code WC 10.8.1

interface ProductMapperInterface {
	/**
	 * Map a product to a feed row.
	 *
	 * @param \WC_Product $product The product to map.
	 * @return array The feed row.
	 */
	public function map_product( \WC_Product $product ): array;
}