Browse: Home / Functions /


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 #


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

Default value: null


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

Default value: null

Return #

(array{percentage:) int, completed: int, total: int} An array of total steps, completed steps and percentage complete.

Source #

File: themes/ld30/includes/helpers.php

Changelog #

Version Description
3.0.0 Introduced.