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

Gets the Lesson Progress.


Description Description

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


Parameters Parameters

$post

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

Default value: null

$course_id

(Optional) The course ID of the lesson.

Default value: null


Top ↑

Return Return

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


Top ↑

Source Source

File: themes/ld30/includes/helpers.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.