Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created March 5, 2019 21:44
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 billerickson/fec4effc49e7b40387e93af2fb66dd99 to your computer and use it in GitHub Desktop.
Save billerickson/fec4effc49e7b40387e93af2fb66dd99 to your computer and use it in GitHub Desktop.
<?php
/**
* FacetWP, Index attachments
*
*/
add_filter( 'facetwp_indexer_query_args', function( $args ) {
$args['post_status'] = array( 'publish', 'inherit' );
return $args;
});
/**
* FacetWP Query Args
*
*/
add_filter( 'facetwp_query_args', function( $args ) {
$args['post_status'] = 'any';
return $args;
}, 10 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment