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


Top ↑

Return Return

(boolean) Returns true if the status was updated successfully otherwise false.


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.4.4 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.