This Documentation is for SearchWP Version 3

Available since: 3.0


View Parameters »

When highlighting is enabled, SearchWP will highlight only exact matches by default. If instead you would prefer that partial matches are highlighted you can use this hook:

// Tell SearchWP to use partial matches when highlighting.
add_filter( 'searchwp_th_partial_matches', '__return_true' );
view raw functions.php hosted with ❤ by GitHub


Parameter Type Description
$partial Boolean

Whether to highlight partial matches