apply_filters( 'learndash_pdf_subject', string $pdf_subject, TCPDF $pdf, int $cert_id )
Filters the subject of the pdf.
Description #
Parameters #
- $pdf_subject
-
(string) PDF subject
-
(TCPDF)
TCPDFclass instance. - $cert_id
-
(int) Certificate post ID.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php
/**
* Example usage for learndash_pdf_subject filter.
*/
add_filter(
'learndash_pdf_subject',
function( $pdf_subject, $pdf, $cert_id ) {
// May add any custom logic using $pdf_subject, $pdf, $cert_id.
// Always return $pdf_subject.
return $pdf_subject;
},
10,
3
);