Created
April 26, 2019 15:22
-
-
Save jchristopher/ea32562fc2f1699dc4fb7558b78e268e to your computer and use it in GitHub Desktop.
Control which SearchWP engines receive highlights
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'searchwp_th_excluded_engines', function( $engines ) { | |
// Prevent highlighting for 'supplemental' engine. | |
$engines[] = 'supplemental'; | |
return $engines; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment