learndash_lesson_completed

do_action( 'learndash_lesson_completed',  array $lesson_data )

Fires after the lesson is marked completed.


Description #


Parameters #

$lesson_data

(array) An array of lesson complete data.


Source #

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


Examples #

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

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

Changelog #

Changelog
Version Description
2.1.0 Introduced.