strangerstudios / pmpro-courses

Create courses with lessons and manage member access access natively in Paid Memberships Pro. Also integrates membership with third party LMS plugins like LifterLMS, LearnDash, Tutor LMS, and Sensei LMS.
https://www.paidmembershipspro.com/add-ons/pmpro-courses-lms-integration/
3 stars 12 forks source link

PMPro Courses, TutorLMS “preview” lessons. #49

Closed MaximilianoRicoTabo closed 1 year ago

MaximilianoRicoTabo commented 1 year ago

All Submissions:

Changes proposed in this Pull Request:

Added further check to bypass preview lessons before check if the user has access to a course.

Resolves XXX.

How to test the changes in this Pull Request:

  1. Install Tutor LMS
  2. Install Tutor LMS Pro
  3. Install Preview Tutor Add On
  4. Install PMPPro course Add On and check Tutor LMS setting
  5. Create a private Tutor course and make it required for certain membership level.
  6. Add few lessons, make one preview.
  7. Open an incognito window and without login navigate to the course
  8. Click the link to the lesson with eye icon (preview one)
  9. Check if you can see the lesson of you're redirected to the Course page.

Other information:

Changelog entry

Enter a summary of all changes on this Pull Request. This will appear in the changelog if accepted.

  • BUG FIX: Fixed and issue with TutorLMS integration. Clicking Preview lesson button was causing redirect instead of actually preview the lesson.
  • BUG FIX: Fixed an issue with default and LifterLMS modules enabled at the same time. LifterLMS courses were giving 404 errors due conflicts with default CPT and Lifter permalinks.