Use filtered args in get_orders function.

This commit is contained in:
Trey Richards 2017-06-30 17:42:04 -07:00
parent f28dcee104
commit fb0924b652
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class WC_Order_Query extends WC_Object_Query {
*/
public function get_orders() {
$args = apply_filters( 'woocommerce_order_query_args', $this->get_query_vars() );
$results = WC_Data_Store::load( 'order' )->query( $this->get_query_vars() );
$results = WC_Data_Store::load( 'order' )->query( $args );
return apply_filters( 'woocommerce_order_query', $results, $args );
}
}