learndash_get_course_prerequisite learndash_get_course_prerequisite( int $course_id ) Gets the list of course prerequisites for a given course. ContentsDescription Parameters Return Source Changelog Related Namespace @package Uses Used By 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. Related # Namespace # global @package # LearnDash / Course Uses # Uses Uses Description includes/course/ld-course-steps-functions.php: learndash_get_step_post_statuses () Get the array of ‘post_stats’ keys used for Course Steps queries. includes/settings/settings-functions.php: learndash_get_setting () Gets the LearnDash setting for a post. includes/class-ldlms-transients.php: LDLMS_Transients::get () Get a Transient includes/class-ldlms-transients.php: LDLMS_Transients::set () Utility function to interface with WP set_transient function. This function allow for filtering if to actually write the transient. includes/class-ldlms-post-types.php: learndash_get_post_type_slug () Used By # Used By Used By Description includes/import/class-ld-import-course.php: LearnDash_Import_Course::set_post_prerequisite () Set post prerequisites includes/import/class-ld-import-user-progress.php: LearnDash_Import_User_Progress::set_post_prerequisite () Set post prerequisites includes/course/ld-course-functions.php: learndash_get_course_prerequisites () Gets the list of course prerequisites and its status for a course.
Uses # Uses Uses Description includes/course/ld-course-steps-functions.php: learndash_get_step_post_statuses () Get the array of ‘post_stats’ keys used for Course Steps queries. includes/settings/settings-functions.php: learndash_get_setting () Gets the LearnDash setting for a post. includes/class-ldlms-transients.php: LDLMS_Transients::get () Get a Transient includes/class-ldlms-transients.php: LDLMS_Transients::set () Utility function to interface with WP set_transient function. This function allow for filtering if to actually write the transient. includes/class-ldlms-post-types.php: learndash_get_post_type_slug ()
Used By # Used By Used By Description includes/import/class-ld-import-course.php: LearnDash_Import_Course::set_post_prerequisite () Set post prerequisites includes/import/class-ld-import-user-progress.php: LearnDash_Import_User_Progress::set_post_prerequisite () Set post prerequisites includes/course/ld-course-functions.php: learndash_get_course_prerequisites () Gets the list of course prerequisites and its status for a course.