add woocommerce_is_layered_nav_active filter
This commit is contained in:
parent
7643712a52
commit
e75b462e86
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue