Sensei LMS 3.0 is now available for testing. This is a major release that introduces the concept of course enrollments. Previously, a learner had access to a course if they had progress in that course (i.e. they were listed in Learner Management). As of Sensei LMS 3.0, a learner has access to a course if they are enrolled in that course.
Separating course progress from course enrollment means that removing a learner from a course will still retain their progress. This means that the learner will be able to pick up where they left off should they enroll in the course again later:
A learner is automatically (manually) enrolled when they click the Take this Course button on the course page. Administrators and teachers can also enroll learners by clicking the Manually enroll learner button in Learner Management. Similarly, learners can be unenrolled by clicking the Remove manual enrollment button. Only courses that a learner is enrolled in will be displayed on their My Courses page.
Here are some of the other enhancements and fixes you’ll find in 3.0:
Module content is only displayed if the learner is enrolled in the course.
Improved support for the Twenty Twenty theme.
Added support for bulk editing lessons.
Teachers are now able to reset progress and edit the course start date of a learner.
Fixed video playback for question media attachments.
Fixed the ability to add multiple learners to a course.
You can download the Sensei LMS 3.0 beta here. One of the most important things to test in this release is that course access for learners is preserved; that is, ensuring that the same learners who had access to the course prior to updating to Sensei LMS 3.0 still have access to the course after updating to Sensei LMS 3.0.
If you find a bug, please submit an issue on Github or leave a comment here. Our tentative release date is April 15th. UPDATE: The release date has been pushed back to April 22ndApril 27th, 2020.
WooCommerce Paid Courses 2.0
WooCommerce Paid Courses 2.0 has been updated to support enrollments. The rules for determining when a learner is enrolled have been simplified and are as follows:
When selling a course using a simple or variable product, a learner will be enrolled if the status of their order is Processing or Completed. If the order status is changed to something else, or the order is moved to the trash, they will be unenrolled.
WooCommerce Subscriptions: When selling a course using a simple or variable subscription, a learner will be enrolled if the status of their subscription is Active or Pending Cancellation. If the subscription status is changed to something else, or the subscription is moved to the trash, they will be unenrolled. The status of the order associated with the subscription is not used to determine enrollment.
WooCommerce Memberships: When using a membership to grant access to a course, a learner will be enrolled if the status of their membership is Active, Free Trial (only applicable when using subscriptions), Complimentary or Pending Cancellation (only applicable when using subscriptions). If the membership status is changed to something else, or the membership is moved to the trash, they will be unenrolled. Neither the status of the order nor the status of the subscription (if applicable) associated with the membership are used to determine enrollment.
Here are some of the other enhancements and fixes you’ll find in 2.0:
A confirmation modal will be displayed when the products attached to a course are updated. Altering any existing products may update the enrolment status of learners based on whether or not they have purchased that product. Once this modal is confirmed, it will not be displayed again for at least 1 week.
Added support for searching and selecting from a large number of products when attaching a product to a course.
The woocommerce CSS class is now only added to the single course page.
Testing WooCommerce Paid Courses
Beta testers will receive the WooCommerce Paid Courses beta directly to their inbox. If you would like to sign up to be a beta tester and have a valid license for WooCommerce Paid Courses that has not expired, please fill out the beta tester signup form using the same email address you used to purchase your license.
Just as with Sensei LMS, the most important thing to test in this release is that course access for learners is preserved. This is applicable for all types of courses including free, paid, and courses sold as part of a subscription or membership.
If you find a bug, please leave a comment here. Our tentative release date is April 15th. UPDATE: The release date has been pushed back to April 22ndApril 27th, 2020.
If you’re a developer, here are the technical details of what’s changed in Sensei LMS 3.0 and WooCommerce Paid Courses 2.0.
Sensei LMS 3.0
Template File Changes
archive-course.php – Added container around controls and header.
course-results.php – Replaced Sensei_Utils::user_started_course with Sensei_Course::is_user_enrolled.
single-course/modules.php – Replaced Sensei_Utils::user_started_course with Sensei_Course::is_user_enrolled.
sensei_background_job_actions – Get a list of background job actions that are handled by the class.
sensei_can_access_course_content – Whether or not the user can view course content.
sensei_can_user_manually_enrol – Checks if the currently logged in user can manually enroll in a given course.
sensei_can_user_view_module – Whether or not the user can view module content.
sensei_course_archive_page_url – Filter the course archive page URL.
sensei_course_enrolment_providers – Get all registered course enrolment providers.
sensei_is_legacy_enrolled – Whether or not a user was enrolled in a course prior to Sensei LMS 3.0.0.
sensei_legacy_enrolment_check – Whether or not to use the legacy enrolment check. Legacy check uses course progress to determine enrolment.
sensei_module_course_signup_notice_level – Customize the alert level for the course sign-up notice message on the module page.
sensei_module_course_signup_notice_message – Customize the course sign-up notice message on the module page.
sensei_module_show_course_signup_notice – Whether or not to show the course sign-up notice on the module page.
sensei_scheduler_class – Override the default class that implements Sensei_Scheduler_Interface.
sensei_should_defer_enrolment_check – Whether to defer the enrolment check to the end of the request.
sensei_user_all_access – Whether or not a particular user has access to all of Sensei LMS without restriction.
sensei_before_learners_enrolled_courses_query – Fires before querying the courses a learner is enrolled in.
sensei_enrolment_results_calculated – Notify upon calculation of enrolment results.
Deprecated Functions & Methods
quiz_questions – Use Sensei_Templates::get_template
sensei_check_prerequisite_course – Use Sensei_Course::is_prerequisite_complete
Sensei_Admin::delete_user_activity – Use Sensei_Learner::delete_all_user_activity
Sensei_Frontend::sensei_course_image – Use Sensei()->course->course_image
Sensei_Frontend::sensei_get_template_part – Use Sensei_Templates::get_part
Sensei_Frontend::sensei_lesson_image – Use Sensei()->lesson->lesson_image
Sensei_Frontend::sensei_lesson_quiz_meta – Use Sensei_Lesson::footer_quiz_call_to_action
The next release of Sensei with WooCommerce Paid Courses is on the horizon, and we’re hard at work testing all of the new features and improvements that it brings.
Given that this is a major release that impacts learner enrolment, we’re looking for a few folks to help us identify and fix potential issues in advance.
Here’s what we’ll do on your staging site:
Make a backup.
Upgrade the site to Sensei with WooCommerce Paid Courses 184.108.40.206.0.0.
Test for issues.
Send you a summary of what we found and any suggestions we may have.
Interested in having our team test a pre-release version on a copy of your site before launch? Learn more or sign up here. If selected, you will be rewarded with a $100 WooCommerce.com coupon. UPDATE: Sign-ups via the blog are now closed.
We’ve deployed a patch release for WooCommerce Paid Courses that resolves the following issues:
The “Add to Cart” text has been added to the translation file.
We fixed a PHP warning that was generated for anonymous user when viewing a lesson that was not attached to a course.
We fixed a conflict with the WooCommerce Blocks plugin that caused the Sensei LMS icon to not be displayed for courses in the WordPress dashboard. The root cause of this particular issue was different from that of the one in the last release.
The @woocommerce/block-library dependency has been removed, as it wasn’t being used.
We have to admit that Sensei LMS’s integration with WooCommerce Memberships has not gotten the attention it deserves. The integration is somewhat shallow, and there are gaps in functionality that need to be addressed.
We’re going to change that, starting today.
We’ve begun by focusing on achieving feature parity between course memberships and products attached directly to a course. In particular, courses that are part of a membership are now included in:
The purchase confirmation notice that a user sees after purchasing a course.
The order confirmation email that is sent to a user after purchasing a course.
The Course Component widget.
The Paid and Free filters on the course archive page.
You can learn more about the other membership improvements we’ve made in this release by reading the beta release post or visiting the change log.
The next release of WooCommerce Paid Courses will focus on deepening the integration with WooCommerce Memberships, enabling you to take better advantage of existing memberships functionality.
Would you like to be a beta tester for WooCommerce Paid Courses and get the new release ahead of everyone else? If you’re interested, and you have a valid license, please fill out the beta tester signup form using the same email address you used to purchase your license.
What’s New in Sensei LMS
Here are the highlights of the Sensei LMS 2.2.1 release:
You can now add HTML to question titles.
Loading the Courses page is faster.
We’ve fixed an issue that could cause formatting issues on some themes. If your existing theme didn’t look quite right on Sensei LMS pages, we’d encourage you to give it another try with Sensei LMS 2.2.1.
Sensei_Course::flush_rewrite_rules has been deprecated with no replacement
Sensei_Lesson::flush_rewrite_rules has been deprecated with no replacement
Testing Sensei LMS
You can download the Sensei LMS 2.2.1 beta here. If you find a bug, please submit an issue on Github or leave a comment here. Our tentative release date for Sensei LMS 2.2.1 is October 23rd.
WooCommerce Paid Courses
The next release of WooCommerce Paid Courses focuses on closing some gaps in the integration with WooCommerce Memberships.
Here are some of the improvements you’ll find in 1.2.0:
Courses purchased via a membership will now be included in the confirmation notice that a user sees after purchase:
Additionally, the order confirmation email will list any courses that were purchased as part of a membership.
When the status of an order containing a membership is manually changed to Processing or Completed, the purchaser is automatically enrolled in any courses tied to that membership. Similarly, cancelling or refunding an order containing a membership removes the purchaser from any courses tied to that membership.
To protect against undesirable behaviour that can occur when a course is sold standalone AND as part of a membership that uses the same product, a warning will now appear on the Edit Course and Edit Membership Plan pages so that corrective action can be taken:
The Course Component widget, as well as the Paid and Free filters that may appear on the course archive page, have been updated to include course memberships.
sensei_wc_paid_courses_get_product_courses – Filter the array of courses attached to the given products.
sensei_wc_paid_courses_memberships_block_editor_l10n_data – Filter the localization data for the block editor script.
Testing WooCommerce Paid Courses
Beta testers will receive the WooCommerce Paid Courses beta directly to their inbox. If you would like to sign up to be a beta tester and have a valid license, please fill out the beta tester signup form using the same email address you used to purchase your license.
If you find a bug, please leave a comment here. Our tentative release date for WooCommerce Paid Courses 1.2.0 is October 23rd.
As these are beta releases, please test them on a staging site and not your live site. If you don’t have a staging site, you can use the WP Staging plugin to create one.
We heard from the community that being able to attach only a single WooCommerce product to a course limits the ways in which you are able to sell your courses.
That’s why we’ve added the ability to attach multiple WooCommerce products to a course.
Here’s how it works.
Sensei LMS Sidebar
For sites running WordPress 5.0+ and WooCommerce 3.6+, a Sensei LMS icon appears in the top right of the screen when adding or editing a course. Clicking the icon opens the sidebar. From here, you can select one or more products to attach to the course:
Sites running older versions of WordPress or WooCommerce, or that have the Classic Editor plugin activated, will be able to select multiple products from the Products metabox:
On the course archive page, the products and their pricing details are displayed:
On the single course page, product cards are displayed to highlight the available purchase options:
If a course is only attached to one product, then a single purchase button is displayed.