apply_filters( 'learndash_pdf_author', string $pdf_author_name, TCPDF $pdf, int $cert_id )
Filters the name of the pdf author.
Description #
Parameters #
- $pdf_author_name
-
(string) PDF author name.
-
(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_author filter.
*/
add_filter(
'learndash_pdf_author',
function( $pdf_author_name, $pdf, $cert_id ) {
// May add any custom logic using $pdf_author_name, $pdf, $cert_id.
// Always return $pdf_author_name.
return $pdf_author_name;
},
10,
3
);