Browse: Home / Hooks /

learndash_certificate_content

apply_filters( 'learndash_certificate_content',  string $cert_content,  int $cert_id )

Filters certificate content after all processing.


Description #


Parameters #

$cert_content

(string) Certificate post content HTML/TEXT.

$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_certificate_content filter.
 */
add_filter(
	'learndash_certificate_content',
	function( $cert_content, $cert_id ) {
		// May add any custom logic using $cert_content, $cert_id.

		// Always return $cert_content.
		return $cert_content;
	},
	10,
	2
);
 

Changelog #

Changelog
Version Description
3.2.0 Introduced.