-
-
Save searchwpgists/5d98238d224bfc05136a10f95b13a364 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