Demo
Courses
Quizzes
Tutorials & Docs
WP Courses
WP Courses PREMIUM
Code Snippets
Documentation
Contact
Affiliates
Log In
Upgrade to Premium
Select Page
How to Get Previous and Next Lesson IDs
Documentation
>
Code Snippets
>
How to Get Previous and Next Lesson IDs
Previous
Next
Lesson Attachments
Lesson Attachments
guarantee.png
This code snippet retrieves the previous and next lesson IDs based on a users last viewed lesson. A link is echoed if a previous or next lesson exists within the same course.
How to Customize WP Courses Course and Lesson Templates
How to Add New Profile Tabs and Content
How to Get Previous and Next Lesson IDs
How to Get Courses Purchased with WooCommerce
How to Get a List of All Lessons Attached to a Course