WC_Order_Query::get_orders()

Get orders matching the current query vars.


Description Description


Return Return

(array|object) of WC_Order objects


Top ↑

Source Source

File: includes/class-wc-order-query.php

	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 );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.