learndash_certificate_styles

apply_filters( 'learndash_certificate_styles',  boolean $include_certificate_styles,  int $cert_id )

Filters whether to include certificate CSS styles in certificate content or not.


Description #


Parameters #

$include_certificate_styles

(boolean) Whether to include certificate styles.

$cert_id

(int) Certificate post ID.


Source #

File: includes/ld-convert-post-pdf.php


Examples #

 <?php
/**
 * Example usage for learndash_certificate_styles filter.
 */
add_filter(
	'learndash_certificate_styles',
	function( $include_certificate_styles, $cert_id ) {
		// May add any custom logic using $include_certificate_styles, $cert_id.

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