learndash_topic_completed

do_action( 'learndash_topic_completed',  array $topic_data )

Fires after the topic is marked completed.


Description #


Parameters #

$topic_data

(array) An array of topic complete data.


Source #

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


Examples #

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

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

Changelog #

Changelog
Version Description
2.1.0 Introduced.