Automattic\WooCommerce\Internal\ProductFeed\Feed
ProductMapperInterface{}└─ ProductShapeMapperInterface
Deprecated since 11.0.0 Implement Mapping\ProductShapeMapperInterface instead.. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Product Mapper Interface.
Push-feed flavor of the product-shape mapping contract: implementations map a product to a feed row that is validated by a FeedValidatorInterface and written to a FeedInterface. The mapping contract itself (map_product()) is inherited from ProductShapeMapperInterface.
Existing implementations keep working unchanged and automatically satisfy ProductShapeMapperInterface; they should migrate to implementing that interface directly before this one is removed.
No Hooks.
Usage
$ProductMapperInterface = new ProductMapperInterface(); // use class methods
Methods
No Methods in class.Changelog
| Since 10.5.0 | Introduced. |
| Since 11.0.0 | Extends ProductShapeMapperInterface; the map_product() contract is inherited unchanged. |
| Deprecated since 11.0.0 | Implement Mapping\ProductShapeMapperInterface instead. |
ProductMapperInterface{} ProductMapperInterface{} code WC 11.0.1
interface ProductMapperInterface extends ProductShapeMapperInterface {
}