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