Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Modify the endpoint used by SearchWP's indexer
function my_searchwp_endpoint() {
return 'searchwp'; // will return the equivalent of site_url() . '/searchwp';
add_filter( 'searchwp_endpoint', 'my_searchwp_endpoint' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment