SearchWP

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:

<?php
// do not attempt to extract plain text from supported document types
add_filter( 'searchwp_omit_document_processing', '__return_true' );
view raw gistfile1.php hosted with ❤ by GitHub