Automattic\WooCommerce\Internal\CLI\Migrator\Interfaces

PlatformMapperInterface::map_product_datapublicWC 1.0

Maps raw platform product data to a standardized array format.

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

Хуков нет.

Возвращает

Массив. A standardized array representing the product, understandable by the WooCommerce_Product_Importer. The specific structure of this array needs to be defined and adhered to.

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

$PlatformMapperInterface = new PlatformMapperInterface();
$PlatformMapperInterface->map_product_data( $platform_data ): array;
$platform_data(объект) (обязательный)
The raw product data object from the source platform (e.g., Shopify product node).

Код PlatformMapperInterface::map_product_data() WC 10.9.4

public function map_product_data( object $platform_data ): array;