learndash_certificate_details_link

apply_filters( 'learndash_certificate_details_link',  string $certificate_link,  int $certificate_post,  int $post_id,  int $user_id )

Filters certificate details link.


Description #


Parameters #

$certificate_link

(string) Certificate Link.

$certificate_post

(int) Certificate Post.

$post_id

(int) Post ID.

$user_id

(int) User ID.


Source #

File: includes/ld-certificates.php


Examples #

 <?php
/**
 * Example usage for learndash_certificate_details_link filter.
 */
add_filter(
	'learndash_certificate_details_link',
	function( $certificateLink = '', $certificate_post = 0, $post_id = 0, $cert_user_id = 0 ) {
		$certificateLink = add_query_arg( 'font', 'arialuni', $certificateLink );

		// Always return $certificateLink;
		return $certificateLink;
	},
	10,
	4
);