FacetWP – Include post IDs along with AJAX response

mgibbs189

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

add_filter( ‘facetwp_render_output’, function( $output, $params ) {
$output[‘settings’][‘post_ids’] = FWP()->facet->query_args[‘post__in’];
return $output;
}, 10, 2 );

{{/gist}}