Available since: 1.0
searchwp_omit_document_processing
Note: Use of this hook will require a manual reindex
If you’d like to prevent SearchWP from indexing document content, this filter allows you to do that.
Example: To prevent SearchWP from attempting to extract plain text from supported document types, add the following to your active 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 | |
// do not attempt to extract plain text from supported document types | |
add_filter( 'searchwp_omit_document_processing', '__return_true' ); |