Sensei LMS 3.9 is now available for testing. This release delivers an all-new quiz editing experience that uses blocks to manage quizzes right inside the lesson editor:

The quiz block supports the existing question types you’re already familiar with — multiple choice, true/false, gap fill, single line, multi line and file upload — as well as selecting existing questions from the question bank:

Although blocks will be the default quiz editing experience going forward, there are a couple of scenarios in which the legacy meta boxes will continue to be used:
- The block functionality has been intentionally disabled by hooking into
sensei_quiz_enable_block_based_editor
. - New question types have been added by hooking into
sensei_question_types
.
See what else is in this release.
Testing Sensei LMS
*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.
If you find a bug, please submit an issue on Github or leave a comment on this post. Our tentative release date is March 25th.
As this is a beta release, please test it 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.
For Developers
Potentially Breaking Changes
- Markup for the Complete Quiz, Save Quiz and Reset Quiz buttons has changed from
input
tobutton
. - Specificity of the quiz button styles has increased (i.e.
.quiz
=>.quiz:not(.quiz-blocks)
).
New Filters
sensei-lms.Question.questionTypes
(JS) – Filter the available question types.sensei_course_block_template
– Customize the course block template.sensei_file_upload_file_prefix
– Customize the filename prefix for file upload questions.sensei_lesson_block_template
– Customize the lesson block template.sensei_question_type_specific_properties
– Customize the properties for a specific question type.sensei_quiz_enable_block_based_editor
– Whether to enable the block editor for quizzes.sensei_rest_api_schema_question_type
– Filter the schema for a custom question type.sensei_rest_api_schema_single_question
– Add additional question types to the REST API schema.
New Actions
sensei_rest_api_category_question_saved
– Fires when a category question is created or updated by the REST API.sensei_rest_api_question_saved
– Fires when a question is created or updated by the REST API.
Thank you to all our testers and contributors!