Automattic\WooCommerce\Internal\ProductFeed\Feed
ProductMapperInterface{}
Product Mapper Interface.
No Hooks.
Usage
$ProductMapperInterface = new ProductMapperInterface(); // use class methods
Methods
Changelog
| Since 10.5.0 | Introduced. |
ProductMapperInterface{} 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;
}