Automattic\WooCommerce\Internal\DataStores\Orders
LegacyDataCleanup::get_total_pending_count()
Get total number of pending records that require update.
Method of the class: LegacyDataCleanup{}
No Hooks.
Return
Int
. Number of pending records.
Usage
$LegacyDataCleanup = new LegacyDataCleanup(); $LegacyDataCleanup->get_total_pending_count(): int;
LegacyDataCleanup::get_total_pending_count() LegacyDataCleanup::get total pending count code WC 9.3.3
public function get_total_pending_count(): int { return $this->can_run() ? $this->legacy_handler->count_orders_for_cleanup() : 0; }