FacetWP – remove 200 post limit from SearchWP 2.6+

mgibbs189

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

add_filter( ‘searchwp_swp_query_args’, function( $args ) {
if ( isset( $args[‘facetwp’] ) ) {
$args[‘posts_per_page’] = -1;
}
return $args;
} );

{{/gist}}