Automattic\WooCommerce\Internal\DataStores\Orders

LegacyDataCleanup::get_next_batch_to_process()publicWC 1.0

Returns the batch with records that needs to be processed for a given size.

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

Хуков нет.

Возвращает

Массив. Batch of records.

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

$LegacyDataCleanup = new LegacyDataCleanup();
$LegacyDataCleanup->get_next_batch_to_process( $size ): array;
$size(int) (обязательный)
Size of the batch.

Код LegacyDataCleanup::get_next_batch_to_process() WC 9.7.1

public function get_next_batch_to_process( int $size ): array {
	return $this->can_run()
		? array_map( 'absint', $this->legacy_handler->get_orders_for_cleanup( array(), $size ) )
		: array();
}