Automattic\WooCommerce\Internal\BatchProcessing
BatchProcessorInterface::get_total_pending_count()
Get the total number of pending items that require processing. Once an item is successfully processed by 'process_batch' it shouldn't be included in this count.
Note that the once the processor is enqueued the batch processor controller will keep invoking get_next_batch_to_process and process_batch repeatedly until this method returns zero.
Метод класса: BatchProcessorInterface{}
Хуков нет.
Возвращает
int
. Number of items pending processing.
Использование
$BatchProcessorInterface = new BatchProcessorInterface(); $BatchProcessorInterface->get_total_pending_count() : int;
Код BatchProcessorInterface::get_total_pending_count() BatchProcessorInterface::get total pending count WC 9.3.1
public function get_total_pending_count() : int;