This reply has been marked as private.
Hi,
there was a slight error of extra space here .more_course form :nth-child(2) in wplms-customizer.php .
that is why the code was not working.
but this code will hide finish course button also for free courses . So please specify your use-case do you want to hide this button only for course in which you have not set any accessibility setting ?
Or for the courses for which you have not created a product like free courses or pmpro courses also?
Based on that I'll need to modify the code.
Dear Ada,
Thank you for your support.
I believe if we do not create and associate a Product to a Course. The Course will appear as a PRIVATE COURSE. On top of that, the Course will only appear as FREE COURSE if we turned on "Free Course" option at each course setting.
Correct me if i am wrong.
Basically, what we need is just to disable the "Finish Course" button for all "PRIVATE COURSE" only. To prevent PRIVATE COURSE's student from accidentally click on "Finish Course" to end the course before the total duration of the course.
So i guess courses for which do not have a created product would achieve the purpose, since we do not have free courses.
Hi,
Yes you are right if you have not set product neither enabled free course switch then it will be private course.
Okay so if you do not have any free courses on your site the this code will work fine for you.
But just for your information- If you enable free courses on your site then for that course finish course button will be hidden.
Please confirm can we close this topic?