Automattic\WooCommerce\Internal\Logging
OrderLogsDeletionProcessor::get_total_pending_count
Get the total count of entries pending processing.
Method of the class: OrderLogsDeletionProcessor{}
No Hooks.
Returns
Int.
Usage
$OrderLogsDeletionProcessor = new OrderLogsDeletionProcessor(); $OrderLogsDeletionProcessor->get_total_pending_count(): int;
OrderLogsDeletionProcessor::get_total_pending_count() OrderLogsDeletionProcessor::get total pending count code WC 10.4.3
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;
}
}