facetwp force template query

djrmom

{{gist file=”custom-hooks.php” lang=”php”}}
true to *ALL* facetwp template query args **/

add_filter( ‘facetwp_is_main_query’, function( $is_main_query, $query ) {
if ( true !== $query->get( ‘facetwp’, false ) ) {
return false;
}
return $is_main_query;
}, 10, 2 );
{{/gist}}