Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • 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