learndash_certification_created

do_action( 'learndash_certification_created',  TCPDF $pdf,  int $cert_id )

Fires after creating certificate TCPDF class object.


Description #


Parameters #

$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_certification_created action.
 */
add_action(
	'learndash_certification_created',
	function( $pdf, $cert_id ) {
		// May add any custom logic using $pdf, $cert_id

		echo '<div>Custom content or markup</div>';
	},
	10,
	2
);
 

Changelog #

Changelog
Version Description
2.4.7 Introduced.