Browse: Home / Functions /

learndash_user_progress_get_next_incomplete_step

learndash_user_progress_get_next_incomplete_step( int $user_id,  int $course_id,  int $step_id )

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


Description #


Parameters #

$user_id

(int) (Required) User ID.

$course_id

(int) (Required) Course ID.

$step_id

(int) (Required) Course Step ID.


Return #

(int) The next incomplete step id or 0 if none found.


Source #

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


Changelog #

Changelog
Version Description
4.2.0 Introduced.