Automattic\WooCommerce\Internal\CLI\Migrator\Core

WooCommerceProductImporter::get_default_options │ private │ WC 1.0

Get default import options.

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

Хуков нет.

Возвращает

array. Default options.

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

// private - только в коде основоного (родительского) класса
$result = $this->get_default_options(): array;

Код WooCommerceProductImporter::get_default_options() WC 11.2.1

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