Browse: Home / Hooks /

learndash_lesson_progress

apply_filters( 'learndash_lesson_progress',  array{percentage: ,  WP_Post $post )

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


Description #


Parameters #

(array{percentage:) int, completed: int, total: int} $progress Lesson progress.

$post

(WP_Post) Post.


Source #

File: themes/ld30/includes/helpers.php


Examples #

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

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

Changelog #

Changelog
Version Description
3.0.0 Introduced.