From 3cddfb44e983fbd5ee6b964c361aef4b843872bf Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Mon, 12 Jan 2015 16:46:30 -0200 Subject: [PATCH] Improved the woocommerce_api_query_args filter #7081 --- includes/api/class-wc-api-resource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/class-wc-api-resource.php b/includes/api/class-wc-api-resource.php index 027dc10ed3b..b98a0126c88 100644 --- a/includes/api/class-wc-api-resource.php +++ b/includes/api/class-wc-api-resource.php @@ -195,7 +195,7 @@ class WC_API_Resource { // resource page $args['paged'] = ( isset( $request_args['page'] ) ) ? absint( $request_args['page'] ) : 1; - $args = apply_filters( 'woocommerce_api_query_args', $args ); + $args = apply_filters( 'woocommerce_api_query_args', $args, $request_args ); return array_merge( $base_args, $args ); }