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: 3.0

searchwp_th_excluded_engines

View Parameters »

When highlighting is enabled SearchWP will highlight searches for all engines. Using this hook you can provide a blacklist of engine names that should be excluded from the highlighter:

<?php
add_filter( 'searchwp_th_excluded_engines', function( $engines ) {
// Prevent highlighting for 'supplemental' engine.
$engines[] = 'supplemental';
return $engines;
} );
view raw functions.php hosted with ❤ by GitHub

Parameters

Parameter Type Description
$engines Array

Skip highlighting for these engines

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