learndash_lesson_progress

learndash_lesson_progress( int|WP_Post $post = null,  int $course_id = null )

Gets the Lesson Progress.


Description #

Return stats about the user’s current progress within a lesson.


Parameters #

$post

(int|WP_Post) (Optional) Lesson WP_Post object or post ID. Default to global $post.

Default value: null

$course_id

(int) (Optional) The course ID of the lesson.

Default value: null


Return #

(array) An array of total steps, completed steps and percentage complete.


Source #

File: themes/ld30/includes/helpers.php


Changelog #

Changelog
Version Description
3.0.0 Introduced.