SearchWP

This Documentation is for SearchWP Version 3

Available since: 3.0

searchwp_th_auto_highlight_content

View Parameters »

When highlighting is enabled, SearchWP will automatically highlight content. You can disable that functionality using this hook:

<?php
// Prevent SearchWP from automatically highlighting content.
add_filter( 'searchwp_th_auto_highlight_content', '__return_false' );
view raw functions.php hosted with ❤ by GitHub

Parameters

Parameter Type Description
$enabled Boolean

Whether content should be automatically highlighted

[wpforms id="3080"]