learndash_pdf_subject

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

$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_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
);