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

ShopifyPlatform::register_platform │ public static │ WC 1.0

Registers the Shopify platform with the migrator system.

Method of the class: ShopifyPlatform{}

No Hooks.

Returns

array. Updated array of platforms including Shopify.

Usage

$result = ShopifyPlatform::register_platform( $platforms ): array;
$platforms(array) (required)
Array of registered platforms.

ShopifyPlatform::register_platform() code WC 11.3.0

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;
}