Automattic\WooCommerce\Internal\ProductFeed\Feed

ProductMapperInterface{}interfaceWC 10.5.0

Product Mapper Interface.

Хуков нет.

Использование

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

Методы

  1. public map_product( \WC_Product $product )

Список изменений

С версии 10.5.0 Введена.

Код 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;
}