Last active
August 8, 2024 23:12
-
-
Save mgibbs189/e07ddcd6bb4e028a9a2596c91b454e0f to your computer and use it in GitHub Desktop.
FacetWP - disable ElasticPress during querying
This file contains hidden or 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 | |
| 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' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment