learndash_mark_complete

apply_filters( 'learndash_mark_complete',  string $return,  WP_Post $post )

Filters HTML output to mark a course completion.


Description #


Parameters #

$return

(string) HTML output to mark course complete.

$post

(WP_Post) WP_Post object being displayed.


Source #

File: includes/course/ld-course-progress.php


Examples #

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

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

Changelog #

Changelog
Version Description
2.1.0 Introduced.