learndash_before_course_completed

do_action( 'learndash_before_course_completed',  array $course_data )

Fires before the course is marked completed.


Description #


Parameters #

$course_data

(array) An array of course complete data.


Source #

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


Examples #

 <?php
/**
 * Example usage for learndash_before_course_completed action.
 */
add_action(
	'learndash_before_course_completed',
	function( $course_data ) {
		// May add any custom logic using $course_data

		echo '<div>Custom content or markup</div>';
	}
);
 

Changelog #

Changelog
Version Description
2.1.0 Introduced.