Automattic\WooCommerce\Internal\Logging
OrderLogsDeletionProcessor::get_total_pending_count_hpos
Get the total count of entries pending processing, HPOS version.
Method of the class: OrderLogsDeletionProcessor{}
No Hooks.
Returns
Int.
Usage
// private - for code of main (parent) class only $result = $this->get_total_pending_count_hpos(): int;
OrderLogsDeletionProcessor::get_total_pending_count_hpos() OrderLogsDeletionProcessor::get total pending count hpos code WC 10.8.1
private function get_total_pending_count_hpos(): int {
global $wpdb;
return (int) $wpdb->get_var(
$wpdb->prepare(
"SELECT COUNT(*)
FROM {$wpdb->prefix}wc_orders_meta
WHERE meta_key = %s",
'_debug_log_source_pending_deletion'
)
);
}