Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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