learndash_pdf_creator

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.

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