learndash_pdf_keywords

apply_filters( 'learndash_pdf_keywords',  string $pdf_keywords,  TCPDF $pdf,  int $cert_id )

Filters the pdf keywords.


Description #


Parameters #

$pdf_keywords

(string) PDF keywords.

$pdf

(TCPDF) TCPDF class instance.

$cert_id

(int) Certificate post ID.


Source #

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


Examples #

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

		// Always return $pdf_keywords.
		return $pdf_keywords;
	},
	10,
	3
);