Automattic\WooCommerce\Internal\DataStores\Orders
LegacyDataCleanup::get_next_batch_to_process()
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() 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(); }