Template reference
Licence: updates need a licence key, entered in Reign Settings > License. Every feature works without it.
All templates live in templates/ in the plugin. Override path: {child-theme}/sensei/reign/<path>. Current @version: 2.0.0 for each.
| Template | What it prints | Variables | Hooks |
|---|---|---|---|
course/hero-cover.php |
The cover picture behind the course header (Cover layout), first section of the theme’s hero area | $course_id, $url, $color (the course’s _course_cover_background_color, or empty) |
reign_sn_before_course/hero-cover, reign_sn_after_course/hero-cover, filter reign_sn_cover_url |
course/reviews.php |
Review summary, paged list and the form, inside the theme’s Reviews section | $course_id, $summary, $reviews, $paged, $pages, $can, $own, $notice |
reign_sn_before_course/reviews, reign_sn_after_course/reviews |
course/review-form.php |
Star input, title and text, with Update and Delete for the learner’s own review | $course_id, $can, $own |
reign_sn_before_course/review-form, reign_sn_after_course/review-form |
card/course-card-parts.php |
The instructor, price and rating chips under a card in the Course List block | $course_id, $parts |
reign_sn_before_card/course-card-parts, reign_sn_after_card/course-card-parts |
community/profile-courses.php |
One sub-tab of a member’s Courses tab: the filter, the cards, or the empty state | $section, $filters, $status, $cards, $own, $catalog |
reign_sn_before_community/profile-courses, reign_sn_after_community/profile-courses, filter reign_sensei_community_profile_courses_data |
Rules for the review form
Section titled “Rules for the review form”Keep the field names course_id, rating, title and content and the nonce field. The form posts to admin-post.php with the action reign_sn_review. The delete button sends reign_sn_review_delete.
Variables
Section titled “Variables”$summary:average(float),count(int),bars(rating => count).$can:ok,loginorenrolled.$own: the viewer’s own review (WP_Comment), held ones included, or null.$notice:saved,held,deleted,denied,invalidor empty.$parts:instructor(name),price(HTML),rating(average,count). A key is absent when there is nothing to show.

