-
-
Save searchwpgists/7022afe45c7c09d21a0c47b3e83b5685 to your computer and use it in GitHub Desktop.
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 | |
// @link https://searchwp.com/documentation/knowledge-base/engine-select-dropdown/ | |
if ( ! empty( $_GET['swpengine'] ) ) { | |
add_filter( 'searchwp\query\args', function( $args ) { | |
$args['engine'] = $_GET['swpengine']; | |
return $args; | |
} ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment