Modify PDF metadata before it gets indexed in SearchWP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Modify PDF metadata before it gets indexed in SearchWP. | |
add_filter( 'searchwp_pdf_metadata', function( $pdf_metadata, $post_id ) { | |
// TODO: Modify $pdf_metadata as you see fit. | |
return $pdf_metadata; | |
}, 20, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment