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

Documentation

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

Available since: 2.8.8

searchwp_purge_document_content

View Parameters »

Because document processing is a resource intensive procedure (and document content is very unlikely to be changed without SearchWP’s delta updating accommodating the edits) SearchWP by default does not remove parsed document content when resetting/purging the index.

If you would instead like SearchWP to completely remove all parsed document content when the index is being purged/reset add the following to your theme’s functions.php:

<?php
// Remove all parsed document content when SearchWP's index resets
add_filter( 'searchwp_purge_document_content', '__return_true' );
view raw functions.php hosted with ❤ by GitHub

Parameters

Parameter Type Description
$purge Boolean

Whether to remove parsed document content

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