facetwp woocommerce 4.4.0 pagination fix

djrmom

{{gist file=”custom-hooks.php” lang=”php”}}
get( ‘facetwp’ ) && ‘product_query’ == $query->get( ‘wc_query’ ) ) {
$prefix = FWP()->helper->get_setting( ‘prefix’ );
$name = $prefix . ‘paged’;

// Set the paged var
if ( isset( FWP()->facet->http_params[‘get’][ $name ] ) ) {
set_query_var( ‘paged’, (int) FWP()->facet->http_params[‘get’][ $name ] );
}
}
}, 1000 );
{{/gist}}