Browse: Home / Hooks /

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 #

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

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