learndash_course_completed learndash_course_completed( int $user_id, int $course_id ) Checks if a course is completed for a user. ContentsDescription Parameters Return Source Changelog Related Namespace @package Uses Used By Description # Parameters # $user_id (int) (Required) User ID. $course_id (int) (Required) Course ID. Return # (boolean) Returns true if the course is completed otherwise false. Source # File: includes/course/ld-course-progress.php Changelog # Changelog Version Description 2.1.0 Introduced. Related # Namespace # global @package # LearnDash / Course Uses # Uses Uses Description includes/course/ld-course-progress.php: learndash_course_status () Outputs the current status of the course. Used By # Used By Used By Description includes/notifications/src/trigger/before-course-expire.php: Before_Course_Expire::maybe_send_reminder () Sends the reminder emails for every course whose access is about to expire. includes/notifications/src/trigger/user-login-track.php: User_Login_Track::get_users_ids_from_course () Return an array of users ids from the course provided. includes/notifications/includes/notification.php: learndash_notifications_course_expires () Send learndash notification email when user’s course is about to expire in X days includes/notifications/includes/notification.php: learndash_notifications_not_logged_in () Send learndash notification email when user hasn’t logged in for X days includes/notifications/includes/notification.php: learndash_notifications_enroll_course () Send learndash notification email when user enrolls into a course includes/course-grid/includes/functions.php: learndash_course_grid_prepare_template_post_attributes () Prepares post attributes for the course grid template. includes/course/ld-course-progress.php: learndash_course_get_step_completion_data () Returns the step completion data when a step is completed by a user. includes/ld-users.php: learndash_user_course_complete_all_steps () Mark all course steps as complete for a user. includes/classes/class-ldlms-model-exam.php: LDLMS_Model_Exam::set_course_complete () Set the Exam Course as completed if the Exam was passed.
Uses # Uses Uses Description includes/course/ld-course-progress.php: learndash_course_status () Outputs the current status of the course.
Used By # Used By Used By Description includes/notifications/src/trigger/before-course-expire.php: Before_Course_Expire::maybe_send_reminder () Sends the reminder emails for every course whose access is about to expire. includes/notifications/src/trigger/user-login-track.php: User_Login_Track::get_users_ids_from_course () Return an array of users ids from the course provided. includes/notifications/includes/notification.php: learndash_notifications_course_expires () Send learndash notification email when user’s course is about to expire in X days includes/notifications/includes/notification.php: learndash_notifications_not_logged_in () Send learndash notification email when user hasn’t logged in for X days includes/notifications/includes/notification.php: learndash_notifications_enroll_course () Send learndash notification email when user enrolls into a course includes/course-grid/includes/functions.php: learndash_course_grid_prepare_template_post_attributes () Prepares post attributes for the course grid template. includes/course/ld-course-progress.php: learndash_course_get_step_completion_data () Returns the step completion data when a step is completed by a user. includes/ld-users.php: learndash_user_course_complete_all_steps () Mark all course steps as complete for a user. includes/classes/class-ldlms-model-exam.php: LDLMS_Model_Exam::set_course_complete () Set the Exam Course as completed if the Exam was passed.