Use filtered args in get_orders function.
This commit is contained in:
parent
f28dcee104
commit
fb0924b652
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue