WordPress at Your Fingertips
function is not described

WC_Order_Query::get_orders() public WC 1.0

Get orders matching the current query vars.

{} It's a method of the class: WC_Order_Query{}

Return

Array|Object. of WC_Order objects

Usage

$WC_Order_Query = new WC_Order_Query();
$WC_Order_Query->get_orders();

Code of WC_Order_Query::get_orders() WC 5.6.0

public function get_orders() {
	$args    = apply_filters( 'woocommerce_order_query_args', $this->get_query_vars() );
	$results = WC_Data_Store::load( 'order' )->query( $args );
	return apply_filters( 'woocommerce_order_query', $results, $args );
}