Automattic\WooCommerce\Internal\Logging

OrderLogsDeletionProcessor::get_total_pending_count_hposprivateWC 1.0

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() 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'
		)
	);
}