Automattic\WooCommerce\Internal\ProductFeed\Feed

ProductMapperInterface::map_productpublicWC 1.0

Map a product to a feed row.

Метод класса: ProductMapperInterface{}

Хуков нет.

Возвращает

Массив. The feed row.

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

$ProductMapperInterface = new ProductMapperInterface();
$ProductMapperInterface->map_product( $product ): array;
$product(WC_Product) (обязательный)
The product to map.

Код ProductMapperInterface::map_product() WC 10.5.2

public function map_product( \WC_Product $product ): array;