SearchWP

This Documentation is for SearchWP Version 3

Available since: 2.7

searchwp_purge_pdf_content

By default, SearchWP leaves extracted PDF content in tact when you reset your index. This saves quite a bit of time during the reindex because the work of parsing all PDFs has already been done, and it’s only the parsed content that is reindexed (as opposed to both the parsing and the reindexing)

Example: if you would like to have SearchWP remove parsed PDF content when the index is reset, add the following to your theme’s functions.php:

<?php
add_filter( 'searchwp_purge_pdf_content', '__return_true' ); // default is false
view raw functions.php hosted with ❤ by GitHub
[wpforms id="3080"]