Created
April 22, 2019 13:16
-
-
Save jchristopher/74feec519e203a628759f1bd0b020810 to your computer and use it in GitHub Desktop.
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