learndash_tcpdf_init

do_action( 'learndash_tcpdf_init',  int $cert_id,  int $cert_user_id,  int  )

Fires on tcpdf initialization.


Description #


Parameters #

$cert_id

(int) Certificate Post ID.

$cert_user_id

(int) User ID.

(int) post-id Related Course, Quiz post ID.


Source #

File: includes/ld-certificates.php


Examples #

 <?php
/**
 * Example usage for learndash_tcpdf_init action.
 */
add_action(
	'learndash_tcpdf_init',
	function( $tcpdf_data ) {
		// May add any custom logic using $tcpdf_data

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

Changelog #

Changelog
Version Description
3.2.0 Introduced.