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