Browse: Home / Hooks /

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 #

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

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

	},
	10,
	2
);
 

Changelog #

Changelog
Version Description
2.4.7 Introduced.