Automattic\WooCommerce\Internal\ProductFeed\Feed
ProductMapperInterface{}
Product Mapper Interface.
Хуков нет.
Использование
$ProductMapperInterface = new ProductMapperInterface(); // use class methods
Методы
Список изменений
| С версии 10.5.0 | Введена. |
Код ProductMapperInterface{} ProductMapperInterface{} WC 10.5.2
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;
}