FacetWP – disable ElasticPress during querying

mgibbs189

{{gist file=”functions.php” lang=”php”}}
<?php

function disable_elasticpress_integration( $query_args ) {
add_filter( ‘ep_skip_query_integration’, ‘__return_true’ );
return $query_args;
}
add_filter( ‘facetwp_query_args’, ‘disable_elasticpress_integration’ );
{{/gist}}