Automattic\WooCommerce\Internal\ProductFeed\Feed
ProductMapperInterface{}└─ ProductShapeMapperInterface
Устарела с версии 11.0.0 Implement Mapping\ProductShapeMapperInterface instead.. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.
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.
Хуков нет.
Использование
$ProductMapperInterface = new ProductMapperInterface(); // use class methods
Методы
Нет Методов у класса.Список изменений
| С версии 10.5.0 | Введена. |
| С версии 11.0.0 | Extends ProductShapeMapperInterface; the map_product() contract is inherited unchanged. |
| Устарела с 11.0.0 | Implement Mapping\ProductShapeMapperInterface instead. |
Код ProductMapperInterface{} ProductMapperInterface{} WC 11.0.1
interface ProductMapperInterface extends ProductShapeMapperInterface {
}