WC_Order_Query::get_orders()
Get orders matching the current query vars.
Description Description
Return Return
(array|object) of WC_Order objects
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 ); }