Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Customize SearchWP's white space threshold when indexing PDFs
<?php
// Allow PDFs with up to 10% white space to be indexed.
add_filter( 'searchwp_pdf_spaces_to_content_percentage', function( $percentage ) {
return 10;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.