Browse: Home / Hooks /

learndash_pdf_author

apply_filters( 'learndash_pdf_author',  string $pdf_author_name,  TCPDF $pdf,  int $cert_id )

Filters the name of the pdf author.


Description #


Parameters #

$pdf_author_name

(string) PDF author name.

$pdf

(TCPDF) TCPDF class instance.

$cert_id

(int) Certificate post ID.


Source #

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


Examples #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 <?php
/**
 * Example usage for learndash_pdf_author filter.
 */
add_filter(
	'learndash_pdf_author',
	function( $pdf_author_name, $pdf, $cert_id ) {
		// May add any custom logic using $pdf_author_name, $pdf, $cert_id.

		// Always return $pdf_author_name.
		return $pdf_author_name;
	},
	10,
	3
);