Skip the main WooCommerce archive?

mgibbs189

{{gist file=”functions.php” lang=”php”}}
<?php

add_filter( ‘facetwp_is_main_query’, function( $is_main_query, $query ) {
if ( ‘product_query’ == $query->get( ‘wc_query’ ) ) { // ignore the default WC shop query
$is_main_query = false;
}
return $is_main_query;
}, 10, 2 );

{{/gist}}