learndash_pdf_title

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.

$pdf

(TCPDF) TCPDF class instance.

$cert_id

(int) Certificate post ID.


Source #

File: includes/ld-convert-post-pdf.php


Examples #

 <?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
);