learndash_course_certificate_link

apply_filters( 'learndash_course_certificate_link',  string $url,  int $course_id,  int $user_id )

Filters course certificate link.


Description #

Used in learndash_get_course_certificate_link function to filter value of certificate link.


Parameters #

$url

(string) The course certificate link.

$course_id

(int) Course ID.

$user_id

(int) The user ID for which the certificate link is generated.


Source #

File: includes/ld-certificates.php


Examples #

 <?php
/**
 * Example usage for learndash_course_certificate_link filter.
 */
add_filter(
	'learndash_course_certificate_link',
	function( $url = '', $course_id = 0, $user_id = 0 ) {
		$url = add_query_arg( 'font', 'arialuni', $url );

		// Always return $url;
		return $url;
	},
	10,
	3
);