Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::get_unpaid_orders()publicWC 1.0

Get unpaid orders last updated before the specified date.

Метод класса: OrdersTableDataStore{}

Хуков нет.

Возвращает

Массив. Array of order IDs.

Использование

$OrdersTableDataStore = new OrdersTableDataStore();
$OrdersTableDataStore->get_unpaid_orders( $date );
$date(int) (обязательный)
This timestamp is expected in the timezone in WordPress settings for legacy reason, even though it's not a good practice.

Код OrdersTableDataStore::get_unpaid_orders() WC 8.9.0

public function get_unpaid_orders( $date ) {
	$timezone_offset = wc_timezone_offset();
	$gmt_timestamp   = $date - $timezone_offset;
	return $this->get_unpaid_orders_gmt( absint( $gmt_timestamp ) );
}