Skip to content

Instantly share code, notes, and snippets.

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 christianschoenmakers/ad3713a6336a7b2dcc31da71fecefec5 to your computer and use it in GitHub Desktop.
Save christianschoenmakers/ad3713a6336a7b2dcc31da71fecefec5 to your computer and use it in GitHub Desktop.
FacetWP - only index product variations
// Facet WP - Only index variations and added hook to append main product data to variation product data
add_filter( 'facetwp_indexer_query_args', function( $args ) {
$args['post_type'] = array('product_variation');
return $args;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment