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 #
- $user_id
-
(integer) (Required) User ID.
- $course_id
-
(integer) (Required) Course ID.
- $step_id
-
(integer) (Required) Course Step ID.
- $return_parent_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. |