Skip to content

Instantly share code, notes, and snippets.

@mgibbs189
Created February 6, 2019 14:31
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mgibbs189/55c7f7531ef7663546e6ea653df0b9e9 to your computer and use it in GitHub Desktop.
Force-index the WP Recipe Maker post type (wprm_recipe)
<?php
add_filter( 'facetwp_indexer_query_args', function( $args ) {
$args['post_type'] = (array) get_post_types();
$args['post_type'][] = 'wprm_recipe';
return $args;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment