Automattic\WooCommerce\Internal\Logging
OrderLogsDeletionProcessor::get_next_batch_to_process
Get the next batch of items to process. An item will be an associative array of 'order_id' and 'meta_value'.
Метод класса: OrderLogsDeletionProcessor{}
Хуков нет.
Возвращает
array.
Использование
$OrderLogsDeletionProcessor = new OrderLogsDeletionProcessor(); $OrderLogsDeletionProcessor->get_next_batch_to_process( $size ): array;
- $size(int) (обязательный)
- Maximum size of the batch to return.
Код OrderLogsDeletionProcessor::get_next_batch_to_process() OrderLogsDeletionProcessor::get next batch to process WC 11.2.2
public function get_next_batch_to_process( int $size ): array {
if ( $this->hpos_in_use ) {
return $this->get_next_batch_to_process_hpos( $size );
} elseif ( $this->cpt_in_use ) {
return $this->get_next_batch_to_process_cpt( $size );
} else {
$this->throw_doing_it_wrong( StringUtil::class_name_without_namespace( __CLASS__ ) . '::' . __FUNCTION__ );
return array();
}
}