Automattic\WooCommerce\Internal\DataStores\Orders
LegacyDataCleanup::orders_pending()
Checks whether there are any orders in need of cleanup and cleanup can run.
Метод класса: LegacyDataCleanup{}
Хуков нет.
Возвращает
true|false
. TRUE if there are orders in need of cleanup, FALSE otherwise.
Использование
// private - только в коде основоного (родительского) класса $result = $this->orders_pending();
Код LegacyDataCleanup::orders_pending() LegacyDataCleanup::orders pending WC 9.7.1
private function orders_pending() { return ! empty( $this->get_next_batch_to_process( 1 ) ); }