Settings and storage
Licence: updates need a licence key, entered in Reign Settings > License. Every feature works without it.
Where settings live
Section titled “Where settings live”All options are stored in the reign_options option, under the key sensei. Only values that differ from the default are stored, so a site that never changed anything stores nothing. Keys: course_layout, default_cover, archive_layout, card_fields, reviews, reviews_who, profile_tab, activity. Read them with Reign_SN_Settings::get( $key ).
The per-course layout is course meta _reign_sn_template.
Reviews
Section titled “Reviews”Reviews are comments on the course post type with the comment meta rating and title. The rating summary is cached in the object cache group reign_sn_reviews for one day and cleared whenever a comment or its meta changes.
Styles and classes
Section titled “Styles and classes”The add-on loads reign-sn-course, reign-sn-cards and reign-sn-reviews on the front end and reign-sn-admin in the settings screen. The body class reign-sn-cover marks a course using the Cover layout.
Uninstall
Section titled “Uninstall”Deleting the add-on keeps settings and reviews. It removes only the weekly licence check.
Setting values
Section titled “Setting values”| Key | Screen label | Values | Default |
|---|---|---|---|
course_layout |
Layout (Course page) | reign, cover |
reign |
default_cover |
Default cover image | image URL | empty |
archive_layout |
Layout (Course cards) | reign, grid |
reign |
card_fields |
Cards show | instructor, price, rating |
instructor, rating |
reviews |
Course reviews | on, off |
off |
reviews_who |
Who can review | enrolled, any |
enrolled |
profile_tab |
Courses tab on profiles | on, off |
on |
activity |
Post to the activity feed when a member | enrolled, course_done, lesson_done, quiz_passed, quiz_failed |
enrolled, course_done, quiz_passed |
The Price choice exists only while Sensei Pro’s WooCommerce Paid Courses is active. The Member profiles card shows only while BuddyPress or BuddyBoss is active. A hidden card keeps its saved values.
Course meta and upgrade data
Section titled “Course meta and upgrade data”| Key | Where | What it holds |
|---|---|---|
_reign_sn_template |
Course post meta | The course’s own layout. Empty follows the site setting. |
_course_cover_image_id |
Course post meta | Attachment ID of the course’s cover image. |
_course_cover_background_color |
Course post meta | Sensei’s cover colour, used behind the cover picture. |
rating, title |
Comment meta | A review’s stars and title. |
reign_sensei_upgrade_log |
Option | One line per upgrade step. The Update status card shows it. |
Query variables and addresses
Section titled “Query variables and addresses”| Variable or address | Used for |
|---|---|
rpage |
Paging of the reviews on a course. |
reign-sn-review |
The result of a review submit (saved, held, deleted, denied, invalid), shown as a notice once. |
reign-sn |
The result of a settings save (saved or reset), shown as a notice once. |
/<members base>/<member>/courses/ |
The profile Courses tab, with sub-tabs enrolled (Learning) and teaching (Teaching). |
Activity types
Section titled “Activity types”With BuddyPress and its Activity component active, each event is registered under the activity filter as reign_sn_enrolled, reign_sn_course_done, reign_sn_lesson_done, reign_sn_quiz_passed and reign_sn_quiz_failed. Change a sentence or skip a post with reign_sensei_activity_text.
Who can do what
Section titled “Who can do what”| Action | Needs |
|---|---|
| Open the Sensei LMS settings screen, save or reset a card | manage_options |
| See the “paused” notice | activate_plugins |
| Change the Reign box (layout and cover image) on a course | edit_post for that course |
| Write a review | Logged in, and enrolled when Who can review is Enrolled learners |
Delete a review through reign_sn_review_delete |
Its author only. Site owners moderate under Comments. |

