All-New Conditional Content & Lesson Actions Blocks

Updated on February 18, 2022

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!


Keep the conversation going…

Join the community
Sensei P2

Follow us on Twitter
@senseilms

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
  • WordPress.com scalable hosting