Automattic\WooCommerce\Internal\CLI\Migrator\Platforms\Shopify

ShopifyPlatform::register_platformpublic staticWC 1.0

Registers the Shopify platform with the migrator system.

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

Хуков нет.

Возвращает

Массив. Updated array of platforms including Shopify.

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

$result = ShopifyPlatform::register_platform( $platforms ): array;
$platforms(массив) (обязательный)
Array of registered platforms.

Код ShopifyPlatform::register_platform() WC 10.9.4

public static function register_platform( array $platforms ): array {
	$platforms['shopify'] = array(
		'name'        => 'Shopify',
		'description' => 'Import products and data from Shopify stores',
		'fetcher'     => ShopifyFetcher::class,
		'mapper'      => ShopifyMapper::class,
		'credentials' => array(
			'shop_url'     => 'Enter shop URL (e.g., mystore.myshopify.com):',
			'access_token' => 'Enter access token:',
		),
	);

	return $platforms;
}