FacetWP – default search return all results

mgibbs189

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

// Add to your theme’s functions.php
function fwp_search_query_args( $search_args, $params ) {
$search_args[‘posts_per_page’] = -1;
return $search_args;
}
add_filter( ‘facetwp_search_query_args’, ‘fwp_search_query_args’, 10, 2 );

{{/gist}}