Note: You are viewing the documentation for Version 3View Version 4 Docs

Documentation

View the installation guide, browse the Knowledge Base, find out about SearchWP's many hooks, get support

Available since: 2.3

searchwp_endpoint

SearchWP’s indexer uses a default endpoint as defined by a call to `site_url()`. If you are running some sort of load balancer and have replaced your site’s home page with a static page, you can modify the endpoint SearchWP’s indexer uses with this hook.

Example: To change the SearchWP indexer endpoint, add the following to your active theme’s functions.php:

<?php
function my_searchwp_endpoint() {
return 'searchwp'; // will return the equivalent of site_url() . '/searchwp';
}
add_filter( 'searchwp_endpoint', 'my_searchwp_endpoint' );
view raw gistfile1.php hosted with ❤ by GitHub
Fix keyword search on your site. No coding required!

Now you can utilize all of the content that's gone unrecognized by native WordPress keyword search instantly with SearchWP

Get SearchWP