Automattic\WooCommerce\Internal\Logging
OrderLogsDeletionProcessor::get_total_pending_count_cpt
Get the total count of entries pending processing, CPT datastore version.
Метод класса: OrderLogsDeletionProcessor{}
Хуков нет.
Возвращает
int.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_total_pending_count_cpt(): int;
Код OrderLogsDeletionProcessor::get_total_pending_count_cpt() OrderLogsDeletionProcessor::get total pending count cpt WC 10.5.0
private function get_total_pending_count_cpt(): int {
global $wpdb;
return (int) $wpdb->get_var(
$wpdb->prepare(
"SELECT COUNT(*)
FROM {$wpdb->postmeta} pm
INNER JOIN {$wpdb->posts} p ON pm.post_id = p.ID
WHERE pm.meta_key = %s
AND p.post_type = %s",
'_debug_log_source_pending_deletion',
'shop_order'
)
);
}