-
-
Save billerickson/fec4effc49e7b40387e93af2fb66dd99 to your computer and use it in GitHub Desktop.
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
<?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