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


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

Available since: 3.0


View Parameters »

By default when partial matching is enabled, SearchWP will apply a LIKE wildcard after the search term. If you would like to prevent that you can use this hook:

// Prevent SearchWP from using a wildcard after search terms when finding partial matches.
add_filter( 'searchwp_like_wildcard_after', '__return_false' );
view raw functions.php hosted with ❤ by GitHub


Parameter Type Description
$wildcard_after Boolean

Whether to use a wildcard suffix

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