Available since: 2.8
searchwp_index_pdf_metadata
View Parameters »Note: Use of this hook will require a manual reindex
This action receives any PDF metadata that’s been extracted by SearchWP, allowing to do with it what you wish.
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 | |
add_action( 'searchwp_index_pdf_metadata', function( $pdf_metadata, $post_id ) { | |
// Perform additional processing of $pdf_metadata | |
}, 10, 2 ); |
Parameters
Parameter | Type | Description |
---|---|---|
$pdf_metadta |
Array |
Keys and values will vary for each PDF |
$post_id |
Integer |
The post ID of the PDF from which the metadata was extracted |