Add woocommerce_is_price_filter_active filter to Query class

This commit is contained in:
Serg 2015-10-05 11:53:24 +03:00
parent 4fd987c165
commit 98523c8dd4
1 changed files with 1 additions and 1 deletions

View File

@ -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';