learndash_get_course_prerequisites( int $post_id, int $user_id )
Gets the list of course prerequisites and its status for a course.
Description Description
Parameters Parameters
- $post_id
-
(Optional) The ID of the course. Default 0.
- $user_id
-
(Optional) The ID of the user. Default 0.
Return Return
(array) An array of course prerequisites.
Source Source
File: includes/course/ld-course-functions.php
Changelog Changelog
Version | Description |
---|---|
3.2.3 | Added $user_id parameter. |
2.4.0 | Introduced. |