Automattic\WooCommerce\Internal\CLI\Migrator\Core

WooCommerceProductImporter::get_default_optionsprivateWC 1.0

Get default import options.

Method of the class: WooCommerceProductImporter{}

No Hooks.

Returns

Array. Default options.

Usage

// private - for code of main (parent) class only
$result = $this->get_default_options(): array;

WooCommerceProductImporter::get_default_options() code WC 10.7.0

private function get_default_options(): array {
	return array(
		'skip_existing'           => false,
		'update_existing'         => true,
		'import_images'           => true,
		'image_timeout'           => self::DEFAULT_IMAGE_TIMEOUT,
		'max_images_per_product'  => self::MAX_IMAGES_PER_PRODUCT,
		'skip_duplicate_images'   => false,
		'create_categories'       => true,
		'create_tags'             => true,
		'handle_variations'       => true,
		'assign_default_category' => false,
		'dry_run'                 => false,
	);
}