Created
March 27, 2020 12:27
-
-
Save jchristopher/1f3902621e494b80608b45b5cbe419a6 to your computer and use it in GitHub Desktop.
Customize the Engine used for a SearchWP Query
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 | |
// Customize the Engine used for a SearchWP Query. | |
add_filter( 'searchwp\query\args', function( $args, $query ) { | |
$args['engine'] = 'supplemental'; // Engine name. | |
return $args; | |
}, 20, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment