Created
May 5, 2014 14:27
-
-
Save jchristopher/dc094a923dbfe8b9ad01 to your computer and use it in GitHub Desktop.
Set the search engine name for forms automatically enhanced by SearchWP Live Search
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 | |
// only applies when SearchWP is active | |
function my_searchwp_live_search_get_search_form_engine() { | |
return 'my_supplemental_engine'; | |
} | |
add_filter( 'searchwp_live_search_get_search_form_engine', 'my_searchwp_live_search_get_search_form_engine' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment