Automattic\WooCommerce\Internal\DataStores\Orders

LegacyDataCleanup::orders_pendingprivateWC 1.0

Checks whether there are any orders in need of cleanup and cleanup can run.

Method of the class: LegacyDataCleanup{}

No Hooks.

Returns

true|false. TRUE if there are orders in need of cleanup, FALSE otherwise.

Usage

// private - for code of main (parent) class only
$result = $this->orders_pending();

LegacyDataCleanup::orders_pending() code WC 9.9.5

private function orders_pending() {
	return ! empty( $this->get_next_batch_to_process( 1 ) );
}