learndash_set_primary_course_for_step learndash_set_primary_course_for_step( integer $step_id, $course_id ) Set primary course_id for course step. ContentsDescription Parameters Return Source Changelog Related Uses Used By Description # Parameters # $step_id (integer) (Required) Course step post ID. Return # (integer) $course_id Primary Course ID if found. Source # File: includes/course/ld-course-functions.php Changelog # Changelog Version Description 3.2 Introduced. Related # Uses # Uses Uses Description includes/ld-misc-functions.php: learndash_update_setting () Updates the LearnDash setting for a post. includes/course/ld-course-functions.php: learndash_get_courses_for_step () Gets the list of courses associated with a step. Used By # Used By Used By Description includes/course/ld-course-functions.php: learndash_check_primary_course_for_step () Check the Course Step primary Course ID. includes/admin/classes-posts-edits/class-learndash-admin-lesson-edit.php: Learndash_Admin_Lesson_Edit::save_post () Save metabox handler function. includes/admin/classes-posts-edits/class-learndash-admin-topic-edit.php: Learndash_Admin_Topic_Edit::save_post () Save metabox handler function. includes/admin/classes-posts-edits/class-learndash-admin-quiz-edit.php: Learndash_Admin_Quiz_Edit::save_post () Save metabox handler function.
Uses # Uses Uses Description includes/ld-misc-functions.php: learndash_update_setting () Updates the LearnDash setting for a post. includes/course/ld-course-functions.php: learndash_get_courses_for_step () Gets the list of courses associated with a step.
Used By # Used By Used By Description includes/course/ld-course-functions.php: learndash_check_primary_course_for_step () Check the Course Step primary Course ID. includes/admin/classes-posts-edits/class-learndash-admin-lesson-edit.php: Learndash_Admin_Lesson_Edit::save_post () Save metabox handler function. includes/admin/classes-posts-edits/class-learndash-admin-topic-edit.php: Learndash_Admin_Topic_Edit::save_post () Save metabox handler function. includes/admin/classes-posts-edits/class-learndash-admin-quiz-edit.php: Learndash_Admin_Quiz_Edit::save_post () Save metabox handler function.