Merge pull request #16530 from woocommerce/fix/query_names

Rename filters to be unique
This commit is contained in:
Claudio Sanches 2017-08-18 14:33:58 -03:00 committed by GitHub
commit 56b8829f46
1 changed files with 2 additions and 2 deletions

View File

@ -67,8 +67,8 @@ class WC_Product_Query extends WC_Object_Query {
* @return array of WC_Product objects * @return array of WC_Product objects
*/ */
public function get_products() { public function get_products() {
$args = apply_filters( 'woocommerce_product_query_args', $this->get_query_vars() ); $args = apply_filters( 'woocommerce_product_object_query_args', $this->get_query_vars() );
$results = WC_Data_Store::load( 'product' )->query( $args ); $results = WC_Data_Store::load( 'product' )->query( $args );
return apply_filters( 'woocommerce_product_query', $results, $args ); return apply_filters( 'woocommerce_product_object_query', $results, $args );
} }
} }