learndash_set_course_prerequisite

learndash_set_course_prerequisite( int $course_id,  array $course_prerequisites = array() )

Sets new prerequisites for a course.


Description #


Parameters #

$course_id

(int) (Optional) ID of the course. Default 0.

$course_prerequisites

(array) (Optional) An array of course prerequisites.

Default value: array()


Return #

(boolean) Returns true if update was successful otherwise false.


Source #

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