add woocommerce_is_layered_nav_active filter

This commit is contained in:
Jack Gregory 2015-09-03 15:09:21 +01:00
parent 7643712a52
commit e75b462e86
1 changed files with 1 additions and 1 deletions

View File

@ -691,7 +691,7 @@ class WC_Query {
*/
public function layered_nav_init( ) {
if ( is_active_widget( false, false, 'woocommerce_layered_nav', true ) && ! is_admin() ) {
if ( apply_filters( 'woocommerce_is_layered_nav_active', is_active_widget( false, false, 'woocommerce_layered_nav', true ) ) && ! is_admin() ) {
global $_chosen_attributes;