From 98523c8dd443fabf35ee6bcc17a335b5fdca2b46 Mon Sep 17 00:00:00 2001 From: Serg Date: Mon, 5 Oct 2015 11:53:24 +0300 Subject: [PATCH] Add woocommerce_is_price_filter_active filter to Query class --- includes/class-wc-query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-query.php b/includes/class-wc-query.php index 93578901eb0..25672f2f594 100644 --- a/includes/class-wc-query.php +++ b/includes/class-wc-query.php @@ -819,7 +819,7 @@ class WC_Query { * Price filter Init */ public function price_filter_init() { - if ( is_active_widget( false, false, 'woocommerce_price_filter', true ) && ! is_admin() ) { + if ( apply_filters( 'woocommerce_is_price_filter_active', is_active_widget( false, false, 'woocommerce_price_filter', true ) ) && ! is_admin() ) { $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';