WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Schedulers

ImportScheduler::import_batch_init() public WC 1.0

Queue the imports into multiple batches.

{} It's a method of the class: ImportScheduler{}

No Hooks.

Return

null. Nothing.

Usage

$result = ImportScheduler::import_batch_init( $days, $skip_existing );
$days(int|true|false) (required)
Number of days to import.
$skip_existing(true|false) (required)
Skip exisiting records.

Code of ImportScheduler::import_batch_init() WC 5.3.0

<?php
public static function import_batch_init( $days, $skip_existing ) {
	$batch_size = static::get_batch_size( 'import' );
	$items      = static::get_items( 1, 1, $days, $skip_existing );

	if ( 0 === $items->total ) {
		return;
	}

	$num_batches = ceil( $items->total / $batch_size );

	self::queue_batches( 1, $num_batches, 'import_batch', array( $days, $skip_existing ) );
}