Browse: Home / Hooks /

learndash_tcpdf_init

do_action( 'learndash_tcpdf_init',  array $args )

Fires on tcpdf initialization.


Description #


Parameters #

$args

(array)

  • 'cert_id'
    (int) Certificate Post ID.
  • 'cert_user_id'
    (int) User ID.
  • 'post_id'
    (int) Related Course, Quiz post ID. } Args


Source #

File: includes/ld-certificates.php


Examples #

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

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

	}
);
 

Changelog #

Changelog
Version Description
3.2.0 Introduced.