Automattic\WooCommerce\Internal\DataStores\Orders
LegacyDataCleanup::get_total_pending_count()
Get total number of pending records that require update.
Метод класса: LegacyDataCleanup{}
Хуков нет.
Возвращает
int
. Number of pending records.
Использование
$LegacyDataCleanup = new LegacyDataCleanup(); $LegacyDataCleanup->get_total_pending_count(): int;
Код LegacyDataCleanup::get_total_pending_count() LegacyDataCleanup::get total pending count WC 9.7.1
public function get_total_pending_count(): int { return $this->can_run() ? $this->legacy_handler->count_orders_for_cleanup() : 0; }