Automattic / sensei

Sensei LMS - Online Courses, Quizzes, & Learning
https://senseilms.com
GNU General Public License v2.0
539 stars 198 forks source link

Mark as Completed for Course with no Lessons #2053

Open jennafarr opened 6 years ago

jennafarr commented 6 years ago

When the Sensei settings are set that a course is completed when all lessons are completed, we are unable to manually mark a student as complete for courses which have no lessons

We have a combination of courses with lessons but some without but need the "Mark as completed" to still work for courses which have no lessons

Sensei version: 1.9.18

donnapep commented 6 years ago

Hmmm...this seems like an extreme edge case. Can I ask why you have courses with no lessons? What does it enable?

jennafarr commented 6 years ago

Well we have offline and online courses that are sold through WooCommerce. Once a student takes the offline course, the instructor marks them as complete so they can obtain a certificate. I see that it is somewhat out of the norm but is it possible to provide a filter or hook that would allow us to complete the course for a user and bypass the check for lesson completions like it does when it's set to "course is complete anytime by clicking complete"?