learndash_get_course_prerequisite

learndash_get_course_prerequisite( int $course_id )

Gets the list of course prerequisites for a given course.


Description #


Parameters #

$course_id

(int) (Optional) The ID if the course. Default 0.


Return #

(array) An array of course prerequisite.


Source #

File: includes/course/ld-course-functions.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.