do_action( 'learndash_certification_created', TCPDF $pdf, int $cert_id )
Fires after creating certificate TCPDF class object.
Description #
Parameters #
-
(TCPDF)
TCPDFclass instance. - $cert_id
-
(int) Certificate post ID.
Source #
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 #
| Version | Description |
|---|---|
| 2.4.7 | Introduced. |