Automattic\WooCommerce\Internal
ScheduledSaleRun::process
Process normalized product IDs in batches.
Method of the class: ScheduledSaleRun{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ScheduledSaleRun = new ScheduledSaleRun(); $ScheduledSaleRun->process(): void;
ScheduledSaleRun::process() ScheduledSaleRun::process code WC 11.3.0
public function process(): void {
$total = count( $this->product_ids );
for ( $offset = 0; $offset < $total; $offset += self::BATCH_SIZE ) {
$this->process_batch( array_slice( $this->product_ids, $offset, self::BATCH_SIZE ) );
}
}