Browse: Home / Hooks /

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 #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 <?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

	}
);
 

Changelog #

Changelog
Version Description
2.1.0 Introduced.