learndash_pdf_filename

apply_filters( 'learndash_pdf_filename',  string $filename,  int $cert_id )

Filters the file name of the certificate pdf.


Description #


Parameters #

$filename

(string) Name of the pdf file.

$cert_id

(int) Certificate post ID.


Source #

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


Examples #

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

		// Always return $filename.
		return $filename;
	},
	10,
	2
);