Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mgibbs189
Created April 8, 2019 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgibbs189/70526962d2f63e767ace9c92e23c5c02 to your computer and use it in GitHub Desktop.
Save mgibbs189/70526962d2f63e767ace9c92e23c5c02 to your computer and use it in GitHub Desktop.
FacetWP - Include post IDs along with AJAX response
<?php
add_filter( 'facetwp_render_output', function( $output, $params ) {
$output['settings']['post_ids'] = FWP()->facet->query_args['post__in'];
return $output;
}, 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment