Browse: Home / Hooks /

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 #

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

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

	}
);
 

Changelog #

Changelog
Version Description
2.1.0 Introduced.