Merge pull request #16530 from woocommerce/fix/query_names
Rename filters to be unique
This commit is contained in:
commit
56b8829f46
|
@ -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 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue