Automattic\WooCommerce\Internal\Logging
OrderLogsDeletionProcessor::get_total_pending_count
Get the total count of entries pending processing.
Метод класса: OrderLogsDeletionProcessor{}
Хуков нет.
Возвращает
int.
Использование
$OrderLogsDeletionProcessor = new OrderLogsDeletionProcessor(); $OrderLogsDeletionProcessor->get_total_pending_count(): int;
Код OrderLogsDeletionProcessor::get_total_pending_count() OrderLogsDeletionProcessor::get total pending count WC 11.2.2
public function get_total_pending_count(): int {
if ( $this->hpos_in_use ) {
return $this->get_total_pending_count_hpos();
} elseif ( $this->cpt_in_use ) {
return $this->get_total_pending_count_cpt();
} else {
$this->throw_doing_it_wrong( StringUtil::class_name_without_namespace( __CLASS__ ) . '::' . __FUNCTION__ );
return 0;
}
}