Posted on 8 Comments

Course Access Expiration is Here

WooCommerce Paid Courses 2.6.0 is hot off the press!

We’ve added the ability to set a time limit on courses using the new Access Period setting*. If you need to offer the type of courses that last only for a period of time, such as compliance training or continuing education, this feature is for you!

To get it set up, simply create a new course, or open an existing one, and use the Access Period panel in the sidebar:

New learners who enroll in the course will be notified via email when their access is set to expire soon, and will also see notices on the course frontend. They will automatically lose access when the date passes.

On the admin side, you’ll be able to see the expiry dates for all of your students right from the Learner Management table:

*The Access Period setting is only available in the block editor, not the classic editor.

Please see the full release change log for Sensei LMS.

To update, please head on over to Dashboard → Updates in the WordPress admin.

Please note: While we have thoroughly tested this release, it’s always possible that we’ve missed something. We recommend that you test the update on a staging site before updating your live site.

For Developers

New Filters – Sensei

  • sensei_user_courses_query – Filters the query which fetches the user courses. So it’s possible to introduce tabs with new content.
  • sensei_user_courses_filter_options – Filters the the user courses filter options (tabs).
  • sensei_render_view_results_block – Filter to render or not the view results block.
  • sensei_display_course_enrollment_actions – Filter to display or not the course enrolment actions.
  • sensei_admin_enrol_user – Notify when a user is manually enrolled to the course.
  • sensei_learners_learner_updated – Filter when a learner row is updated in learner management.

New Filters – WooCommerce Paid Courses

  • sensei_wc_paid_courses_expiration_remaining_days_notifications – Filters the remaining days to notify the user.
  • sensei_wc_paid_courses_expiration_notification_email_content – Filters the expiration email content, so the user can customize the text for the emails, or create new content for different remaining days notifications (in case they use the previous filter).
  • sensei_wc_paid_courses_expiration_notification_job_recurring_schedule – FIlters the schedule for the notifications, in case the user wants to send it at a different moment.
  • sensei_wc_paid_courses_expiration_before_email_content – Action to add any content before the expiration email.
  • sensei_wc_paid_courses_expiration_after_email_content – Action to add any content after the expiration email.
  • sensei_wc_paid_courses_expiration_countdown_notice_threshold – It allows users to configure when the notices will start to appear.
  • sensei_wc_paid_courses_expiration_job_recurring_schedule – Filter the course expiration job recurring schedule. The default value is "0 0 * * *" (daily at midnight). It doesn’t have additional arguments.
  • sensei_wc_paid_courses_learner_access_expiration_date – Filter the learner access expiration date. The filter arguments are:
    • {DateTimeImmutable} $expiration_date – Expiration date.
    • {DateTimeImmutable} $start_date – Start date.
    • {int} $user_id – User ID.
    • {int} $course_id– Course ID.

Deprecated Code

  • Sensei_WC_Paid_Courses\Courses::fix_product_metadata_type – No replacement.
Posted on Leave a comment

Creating Products from the Course Editor

In WooCommerce Paid Courses 2.5.0, we’ve added the ability to create a WooCommerce product from within the course editor. 😍 Now, there’s really no reason to ever leave the editor while building your course!

And, after creating your product, it’s automatically linked to the course for you. Easy peasy!

To add a product, just look for the Pricing section in the Course sidebar:

“Create a new product” link in the Course sidebar
Creating a new product from the Course sidebar

Or, if you’re using the Course Signup block (formerly known as the Take Course block), you can create a product from the pricing modal:

“Create a new product” link in the Course Signup block
Creating a new product from the Course Signup block

Also, if you prefer to work inside WooCommerce, you can associate one or more courses with a product right in the product page.

To update, please head on over to Dashboard → Updates in the WordPress admin.

Please note: While we have thoroughly tested this release, it’s always possible that we’ve missed something. We recommend that you test the update on a staging site before updating your live site.

For Developers

New Filters

  • sensei_learner_courses_page_template –  Filter the My Courses page template when created through the setup wizard.
  • sensei_course_completed_page_template – Filter the Course Completed page template when created through the setup wizard.

Template File Changes

  • templates/content-course.php – Don’t add HTML for the course excerpt if it’s empty.

Deprecated Code

  • Courses::add_product_catalog_data – No replacement.
Posted on Leave a comment

Celebrate Wins with the Course Completed Page

Everyone deserves to be recognized for a job well done! ⭐

That’s why, in Sensei LMS 3.13, we’ve added a Course Completed page that is displayed immediately after the learner finishes the last lesson. This page congratulates them on completing the course, provides some next steps, and displays their results:

Screenshot of the Course Completed page

And the best part is that you can customize this page however you like! You could:

  • Cross-promote or cross-sell other courses
  • Ask for feedback via a course evaluation form
  • Request a review of the course

The simplest way to create this page and start using it right away is to re-run the setup wizard from the Help tab on the Courses page:

Screenshot showing how to access the setup wizard from the Courses help tab.
Launching the Setup Wizard

See what else is in this release.

What’s New in WooCommerce Paid Courses?

We’ve streamlined the way products are assigned to courses in the course editor AND added the ability to link courses and products right from the product page!

If your workflow involves creating courses first and then products, you can now link them together without ever leaving the WooCommerce product page:

Screenshot showing how to associate courses with a product.
Linking courses to a product on the product page

Or, if you prefer to create products first and then courses, you can link them on the course page from either the Pricing section of the sidebar or the Take Course block:

Screenshot showing the Pricing section in the Course sidebar.
Pricing section in the Course sidebar
Screenshot showing the modal to link a course to products from the Take Course block.
Linking products to a course from the Take Course block

For Developers

New Filters

  • sensei-lms.Course.completedActions – Customize the Course Completed Actions block buttons (JS).
  • Sensei_Course::sensei_course_completed_page_url – Filter the course completed page URL.

Deprecated Code

  • getProducts selector and its related functions in the Products store (JS).
  • Sensei_WC_Paid_Courses\Courses::store_user_confirmation – No replacement.
  • Sensei_WC_Paid_Courses\Courses::update_modal_confirmation_date – No replacement.
  • Sensei_WC_Paid_Courses\Courses::has_user_confirmed_modal – No replacement.

To update, please head on over to Dashboard → Updates in the WordPress admin.

Please note: While we have thoroughly tested this release, it’s always possible that we’ve missed something. We recommend that you test the update on a staging site before updating your live site.

Posted on 1 Comment

My Courses Page Gets a Grid View

In Sensei LMS 3.10, we released the Learner Courses block, which introduced a redesign of the My Courses page.

In Sensei LMS 3.12, we’ve added an all-new layout to the Learner Courses block – grid view! This is in addition to the list view you already know and love:

My Courses page - Grid view

Grid view is responsive, meaning the number of columns increase or decrease automatically based on the current screen size. To use it, add the Learner Courses block to the My Courses page, and select Grid view from the block toolbar or settings.

What Else is in This Release?

Here are some other things you’ll find in 3.12:

  • Compatibility with PHP 8.
  • Fixed an issue with lesson order not saving when object caching is used.

See the full list of changes.

To update, please head on over to Dashboard → Updates in the WordPress admin.

Please note: While we have thoroughly tested this release, it’s always possible that we’ve missed something. We recommend that you test the update on a staging site before updating your live site.

Posted on 2 Comments

Reimagining My Courses

Without a doubt, the My Courses page is the central hub of your learners’ online course-taking experience. It’s where they go to access their courses, and generally bask in the glory of all the progress they’ve made so far.

And let’s face it…this page was overdue for a little ❤️.

That’s why in Sensei LMS 3.10, My Courses has been updated with a cleaner, fresher look. Not only that, but we’ve also shifted more control over to you by giving you the customization tools you need to really make My Courses sparkle and shine.

So long shortcode, hello blocks!

My Courses page - List view

The My Courses page harnesses the power of three new blocks – Learner Messages Button, Learner Courses and View Results.

Learner Messages Button

The Learner Messages Button block enables learners to view their private messages with the teacher. This block is only displayed if the learner is logged in and private messaging is enabled in Sensei’s settings. Clicking the button takes the learner to a page that shows all of their communication with the teacher.

Learner Courses

The Learner Courses block displays a list of courses the learner is currently enrolled in. There are separate views for filtering by active or completed courses, and the block’s settings enable you to customize colours and select which elements to display.

View Results

The View Results block is added to My Courses automatically once a course has been completed, but it can also be added to any of your individual courses. Clicking the button takes the learner to a page that shows how well they performed in each lesson of the course.

What Happens to My Existing My Courses Page?

Your existing My Courses page is not affected when updating to 3.10. If you’d like to convert it to use the new blocks, you can do that by first deleting the [sensei_users_courses]shortcode, and then adding the desired blocks from the block inserter:

Sensei blocks available on the My Courses page

What Else is in This Release?

Here are some other changes you’ll find in 3.10:

  • For lessons with prerequisites, display the first prerequisite lesson that needs to be completed in the prerequisite notice.
  • Only include questions belonging to the current teacher when adding category questions.

See the full list of changes.

To update, please head on over to Dashboard → Updates in the WordPress admin.

Please note: While we have thoroughly tested this release, it’s always possible that we’ve missed something. We recommend that you test the update on a staging site before updating your live site.

For Developers

New Filter

sensei_filter_category_questions_by_author – Whether category questions should be filtered by author.

Deprecated Code

  • Sensei_Frontend::sensei_get_user_quiz_answers – Use Sensei_Quiz::get_user_answers instead.
  • Sensei_Quiz::stop_quiz_questions_loop – No replacement.
  • Sensei_Assets::override_script – No replacement.
  • Sensei_Assets::wp_compat – No replacement.
Posted on 1 Comment

A New Default Quiz Editing Experience

Sensei LMS 3.9 is out and brings with it a brand new way to manage quizzes – right inside the editor!

Introducing the Quiz Block

Both new and existing quizzes are now edited using the Quiz block. This block is automatically added when a new lesson is created, but can be removed if you don’t need it. Existing quizzes are also switched over to automatically use the new block:

Quiz block

The Quiz block supports the same functionality as the old meta boxes, including question types, settings, and selecting existing questions or category questions:

Quiz block - Inserter

Blocks are also used when editing an individual question residing in the question bank:

Question block

The view that the learner sees remains the same, and quizzes are still displayed on a separate page as before.

To learn more about how to use the Quiz block, please see our documentation on quizzes and questions.

What If I Don’t Want to Use the Quiz Block?

If you’d prefer to continue to use the meta boxes to manage quizzes, you can disable the Quiz block by using the following code snippet:

add_filter( 'sensei_quiz_enable_block_based_editor', '__return_false' );

What Else is in This Release?

Here are some other improvements you’ll find in 3.9:

  • We added a filter to enable customizing the course and lesson block templates.
  • Only courses belonging to the current teacher are shown on the Analysis page.
  • Teachers are no longer able to add another teacher’s questions to a quiz.
  • When the course teacher is changed, the author of any associated quiz questions is also updated to the new teacher when it makes sense to do so.
  • We’ve added the ability to set a question to Draft status.

See the full list of changes.

Developers: For deprecations, please see the beta release post.

To update, please head on over to Dashboard → Updates in the WordPress admin.

Please note: While we have thoroughly tested this release, it’s always possible that we’ve missed something. We recommend that you test the update on a staging site before updating your live site.

Posted on Leave a comment

All-New Conditional Content & Lesson Actions Blocks

Sensei LMS 3.8

Sensei LMS 3.8 is available now and introduces two new blocks – Conditional Content and Lesson Actions.

Conditional Content

The Conditional Content block, available on the course page, is very handy when you’d like to display content to a specific group of people. For example, you may want to write some sales copy to entice people to enrol in your course, but not display it to those who are already enrolled. The Conditional Content block makes this possible!

To configure the block, just add some child blocks inside it and set the visibility condition to only display the content when the person is enrolled in the course, is not enrolled in the course, or has completed the course:

Lesson Actions

The Lesson Actions block groups together the actions that can be taken on the lessons page including viewing the quiz, marking the lesson as complete, moving to the next lesson in the course, or resetting the progress of the current lesson. Each of the buttons can be customized by changing its style, color or border.

You can use the dropdown in the toolbar to simulate what the learner will see depending on whether or not they have completed the lesson:

When creating a new lesson, the Lesson Actions block (and Contact Teacher block) are automatically added to the page for you. They are equivalent to the elements that already appear on the lesson 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:

What If I Don’t Want to Use Blocks?

If you’d rather not use blocks for new lessons, you can remove them in the editor and the PHP template will be used to render the lesson as before. This will create a consistent experience for learners until you’re able to update existing lessons to also use blocks.

What Else is in This Release?

Here are some other improvements you’ll find in 3.8:

  • We’ve ensured that all Sensei blocks can be properly translated.
  • We fixed an issue where the lesson order was changing when a lesson was updated.

See the full list of changes.

Developers: For deprecations, please see the beta release post.

To update, please head on over to Dashboard → Updates in the WordPress admin.

Please note: While we have thoroughly tested this release, it’s always possible that we’ve missed something. We recommend that you test the update on a staging site before updating your live site.

Thank you to all our testers and contributors!

Posted on 3 Comments

Sensei LMS 3.7 & WooCommerce Paid Courses 2.3

What’s New in Sensei LMS 3.7?

Sensei LMS 3.7 contains some important bug fixes and performance improvements, and adds an integration with the Site Health tool.

One especially important bug fix involves a pesky issue where some learners were being added to a course or lesson multiple times. This was preventing those learners from making progress in the course. As part of that fix, we’ve also brought back the ability to remove a learner’s progress at the lesson level.

Upon upgrading to 3.7, indexes are automatically added to the comments table if they don’t already exist. As Sensei LMS stores a lot of data in this table, this should noticeably improve the performance of large sites.

We’ve also added an integration with the Site Health tool. The integration does some checks on the status of the learner enrolment job and migration, and will also let you know if your theme is using outdated Sensei template files:

See the full list of changes.

What’s New in WooCommerce Paid Courses 2.3?

When a learner purchases one or more courses, those courses are now listed on the Order Details page. Clicking on any of the courses takes the learner right to that course:

We’ve also added a Courses section to the sidebar of the My Account page, which navigates to the learner’s My Courses page:

Developers: For new hooks, deprecations and template file changes, please see the beta release post.

To update, please head on over to DashboardUpdates in the WordPress admin.

Please note: While we have thoroughly tested this release, it’s always possible that we’ve missed something. We recommend that you test the update on a staging site before updating your live site.

Thank you to all our testers and contributors!

Posted on 9 Comments

All-New Course Blocks in Sensei LMS 3.6 and WC Paid Courses 2.2

We are very pleased to announce that Sensei LMS 3.6 is now publicly available. Although technically a minor release, 3.6 packs a major punch!

What’s New in Sensei LMS 3.6?

Sensei LMS 3.6 introduces several new blocks to the course page:

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:

Take Course

The Take Course block is a button that enables a registered user to enrol in the course. Once enrolled, the Take Course button is no longer displayed for that user. The block can be customized by changing its style, colors or border.

Contact Teacher

The Contact Teacher block enables registered users to contact the teacher. The user is not required to be enrolled in the course in order to send a message to the teacher. Similar to Take Course, the Contact Teacher block can have its style, colors and border customized.

Course Progress

Course Progress displays the user’s progress in the course. This block is only visible to users who are already enrolled. The course progress block enables you to customize the border radius, progress bar height, and colors.

Course Outline

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:

Please note that it’s not currently possible to add existing modules or lessons to the course outline block. Given this, the recommended flow for creating a new course is to start with the course outline block, and then add content to the individual modules and lessons once they’ve been created.

You can learn more about how to use these blocks in our documentation. A future release will add more blocks for both lessons and quizzes.

What If I Don’t Want to Use Blocks?

If you’d rather not use blocks for new courses, you can remove them in the editor and the PHP template will be used to render the course as before. This will create a consistent experience for learners until you’re able to update existing courses to also use blocks.

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.

What’s New in WooCommerce Paid Courses 2.2?

WooCommerce Paid Courses 2.2 extends the Take Course block, and changes 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:

Developers: For new hooks, deprecations and template file changes, please see the beta release post.

To update, please head on over to DashboardUpdates in the WordPress admin.

Please note: While we have thoroughly tested this release, it’s always possible that we’ve missed something. We recommend that you test the update on a staging site before updating your live site.

Thank you to all our testers and contributors!

Posted on 3 Comments

Sensei LMS 3.5 – Export Courses, Lessons & Questions

Sensei LMS 3.5 has just been released and brings with it the ability to export courses, lessons and questions. This means you can export course content from one site and import it into another one, making it easier than ever to transfer courses between Sensei LMS sites.

Exporter

Sensei’s new export functionality is available from the Sensei LMS > Export menu. This first iteration supports exporting courses, lessons and questions in zip format. The downloaded zip file contains individual CSV files, one per selected content type:

Export content to a CSV file

Sample Course

We’ve also added a new option to the setup wizard to install a sample course. This course is created in draft status so that it’s not publicly available, and walks you through how to get started with Sensei LMS:

Install a sample course

You can reach the setup wizard at any time by going to Courses > All Courses, clicking the Help tab at the top, and then clicking the Setup wizard button:

Launch the setup wizard

What Else is in this Release?

  • Courses with any status are displayed in the Course Prerequisite dropdown. Previously, only published courses were listed.
  • We fixed an issue with duplicate content sometimes being imported.
  • We fixed an error in the setup wizard that occurred when navigating to a previous step.

For Developers

If you’re a developer, here’s what you need to know about Sensei LMS 3.5.

Deprecated Code

  • includes/3rd-party/wordpress-importer.php – Deprecated the entire file.

To update, please head on over to DashboardUpdates in the WordPress admin.

Please note: While we have thoroughly tested this release, it’s always possible that we’ve missed something. We recommend that you test the update on a staging site before updating your live site.