learndash_set_course_prerequisite_enabled( int $course_id, boolean $enabled = true )
Sets the status of whether the course prerequisite is enabled or disabled.
Description Description
Parameters Parameters
- $course_id
-
(Required) The ID of the course.
- $enabled
-
(Optional) The value is true to enable course prerequisites. Any other value will disable course prerequisites.
Default value: true
Return Return
(boolean) Returns true if the status was updated successfully otherwise false.
Source Source
File: includes/course/ld-course-functions.php
Changelog Changelog
Version | Description |
---|---|
2.4.4 | Introduced. |