Available since: 1.9.7
searchwp_index_comments
Note: Use of this hook will require a manual reindex
By default SearchWP will include Comments in the index. If you do not want Comment content to be indexed at all, you can add the following to your theme’s functions.php
:
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_index_comments', '__return_false' ); |