Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Created May 5, 2014 14:27
Show Gist options
  • Save jchristopher/dc094a923dbfe8b9ad01 to your computer and use it in GitHub Desktop.
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
<?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