Note: You are viewing the documentation for Version 3View Version 4 Docs


View the installation guide, browse the Knowledge Base, find out about SearchWP's many hooks, get support

Available since: 1.0


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:

// 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


Fix keyword search on your site. No coding required!

Now you can utilize all of the content that's gone unrecognized by native WordPress keyword search instantly with SearchWP

Get SearchWP