Browse: Home / Hooks /

learndash_get_lesson_progress

This hook has been deprecated.

apply_filters_deprecated( 'learndash_get_lesson_progress',  array $progress,  array $topics )

Filters LearnDash lesson progress.


Description #


Parameters #

$progress

(array) An Associative array of lesson progress with keys total, completed and percentage.

$topics

(array) An array of the topics of the lessons.


Return #

(array) An Associative array of lesson progress with keys total, completed and percentage.


Source #

File: includes/deprecated/5.0.0/functions.php


Examples #

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

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

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

Changelog #

Changelog
Version Description
5.0.0 This hook has been deprecated.
3.0.0 Introduced. This hook has been deprecated.