Created
September 1, 2018 08:41
-
-
Save christianschoenmakers/ad3713a6336a7b2dcc31da71fecefec5 to your computer and use it in GitHub Desktop.
FacetWP - only index product variations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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