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 SearchWP will apply partial matching logic to all engines when partial matching has been enabled. Using this hook you can control whether specific engines utilize partial matching.

// Prevent partial matching on the 'default' SearchWP engine only.
// NOTE: the engine name in this hook tag is: default
add_filter( 'searchwp_partial_matching_default', '__return_false' );
view raw functions.php hosted with ❤ by GitHub


Parameter Type Description
$enabled Boolean

Whether partial matching is enabled for this engine

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