Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::get_orders()publicWC 1.0

Deprecated from version 3.1.0. It is no longer supported and can be removed in future releases. See {@see wc_get_orders}.

Get all orders matching the passed in args.

Method of the class: OrdersTableDataStore{}

No Hooks.

Return

Array|Object.

Usage

$OrdersTableDataStore = new OrdersTableDataStore();
$OrdersTableDataStore->get_orders( $args );
$args(array)
List of args passed to wc_get_orders().
Default: array()

Changelog

Deprecated since 3.1.0 - Use {@see wc_get_orders} instead.

OrdersTableDataStore::get_orders() code WC 8.6.1

public function get_orders( $args = array() ) {
	wc_deprecated_function( __METHOD__, '3.1.0', 'Use wc_get_orders instead.' );
	return wc_get_orders( $args );
}