Browse: Home / Functions /


learndash_user_progress_get_previous_incomplete_step( integer $user_id,  integer $course_id,  integer $step_id,  bool $return_parent_id = true )

Utility function to get the previous incomplete course step for user.

Description #

Parameters #


(integer) (Required) User ID.


(integer) (Required) Course ID.


(integer) (Required) Course Step ID.


(bool) (Optional) Return the parent step id. See function code for details.

Default value: true

Source #

File: includes/classes/class-ldlms-model-user-course-progress.php

Changelog #

Version Description
4.0.2 Added $return_parent_id parameter.
3.4.0 Introduced.