Automattic\WooCommerce\Internal\Logging
OrderLogsDeletionProcessor::get_total_pending_count_hpos
Get the total count of entries pending processing, HPOS version.
Метод класса: OrderLogsDeletionProcessor{}
Хуков нет.
Возвращает
int.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_total_pending_count_hpos(): int;
Код OrderLogsDeletionProcessor::get_total_pending_count_hpos() OrderLogsDeletionProcessor::get total pending count hpos WC 11.2.2
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'
)
);
}