Redirect to lesson page for enrolled course in dashboard – Wrong Documentation
-
Hi,
I am following the documentation here: https://docs.themeum.com/tutor-lms/developers/redirecting-to-lessons-for-enrolled-courses/
I navigated to
plugins/tutor/templates/dashboard/enrolled-courses.php
but I do not see the lines of code that are mentioned in the documentation:
$custom_url = home_url($post->post_type.'/'.$post->post_name)
How can I go about making it so that when the user clicks the “Start Learning” or “Continue Learning” button on the course card for their enrolled courses in the dashboard, it redirects to the lesson page instead of the single course page? Better yet, how can I make it so that it redirects to the user’s current stage in the course, if they have started the course already? For example, if they click Continue Learning, and they are on Lesson 4, it should take them to Lesson 4. However, if they are enrolled but haven’t started a lesson yet, when they click “Start Learning” it takes them to the first lesson. Can this be achieved?
- The topic ‘Redirect to lesson page for enrolled course in dashboard – Wrong Documentation’ is closed to new replies.