Sensei LMS 3.6 & WooCommerce Paid Courses 2.2 Beta Releases – Course Blocks

Updated on November 26, 2020

Sensei LMS 3.6

Sensei LMS 3.6 is now available for testing. This release introduces a number of blocks that are available when adding or editing courses:

  • Take Course button
  • Contact Teacher button
  • Course Progress
  • Course Outline

When creating a new course, these blocks are automatically added to the page for you. They are equivalent to the elements that already appear on the course page, but because they have been rewritten as blocks, it’s now possible to change how they look, adjust their order, or remove them altogether.

Course Outline Block

The course outline block is especially noteworthy. In addition to displaying the modules and lessons that make up a course, the course outline block enables you to build your course structure right inside the editor. Any modules or lessons you add to the block will be created automatically once the course is saved:

What Else is in This Release?

Here are some other enhancements and fixes you’ll find in 3.6:

  • Ensure analysis export works with RTL languages.
  • Fix incorrect rounding of maximum file size for file upload questions.
  • Ensure learners who have already viewed a quiz see the latest updates the next time they view it.
  • Remove wrapper elements from templates. This should improve the look of Sensei pages on some themes.
  • Enforce minimum PHP version of 7.0.

See the full list of changes.

Testing Sensei LMS

You can download the Sensei LMS 3.6 beta here. Alternatively, if you don’t have a staging site, you can use our Sensei LMS Test Site. Please note that the test site integrates with Smartlook to record your visit. Smartlook is GDPR compliant out of the box, and any recordings will be deleted automatically after 1 month.

WooCommerce Paid Courses 2.2

WooCommerce Paid Courses 2.2 integrates with the Take Course block, changing it to a Purchase Course button if there is a single product attached to the course, or pricing cards if there are multiple products attached to the course:

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.

If you find a bug in Sensei LMS or Sensei with WooCommerce Paid Courses, please submit an issue on Github or leave a comment here. Our tentative release date is December 10th.

For Developers

If you’re a developer, here are the technical details of what’s changed in Sensei LMS 3.6.

Sensei LMS 3.6

Template File Changes

  • templates/course-results.php – Changed article element to div and removed section.
  • templates/course-results/lessons.php – Changed article element to div.
  • templates/single-course.php – Removed article and section elements.
  • templates/single-lesson.php – Removed article and section elements.
  • templates/single-message.php – Removed article and section elements.
  • templates/single-quiz.php – Removed article and section elements.

New Filters

  • sensei_block_type_args – For WordPress < 5.5, filters block arguments. For WordPress >= 5.5, use register_block_type_args instead.
  • sensei_course_complete_prerequisite_message – Filter course prerequisite message.
  • sensei_use_sensei_template: Whether to use Sensei’s templates and content wrappers.
  • sensei_use_wp_register_link – Force Sensei to output the default WordPress user registration link.

New Action

sensei_loaded: Fires once all global objects have been set in Sensei LMS.

Deprecated Functions & Methods

  • Sensei_Admin::get_lesson_order
  • Sensei_Lesson::on_lesson_published
  • Sensei_Core_Modules::reset_none_modules_transient

There are no deprecations or new hooks in WooCommerce Paid Courses 2.2.

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.

Thank you to all our testers and contributors!

Keep the conversation going…

Join the community
Sensei P2

Follow us on Twitter

Stay up to date
Join our mailing List

Choose Your WordPress LMS

We know you’re a genius. Now let us help you share your brilliance with the world.

Host Anywhere

Download our free plugin to use on any WordPress site, and upgrade to Sensei Pro at any time.

  • Open-source and extendable
  • Works with any WordPress theme
  • Integrates with 100s of WordPress plugins
  • Choose any web host

Host With Us

Get blazing-fast hosting, Sensei Pro, backups, and security all in one discounted package.

  • Sensei Pro courses, and quizzes
  • WooCommerce payments
  • Jetpack security and marketing
  • scalable hosting