learndash_lesson_progress

apply_filters( 'learndash_lesson_progress',  array $progress,  int|object $post )

Filters stats about the user’s current progress within a lesson


Description #


Parameters #

$progress

(array) lesson progress details.

$post

(int|object) Post ID or post object.


Source #

File: themes/ld30/includes/helpers.php


Examples #

 <?php
/**
 * Example usage for learndash_lesson_progress filter.
 */
add_filter(
	'learndash_lesson_progress',
	function( $progress, $post ) {
		// May add any custom logic using $progress, $post.

		// Always return $progress.
		return $progress;
	},
	10,
	2
);