Docs components
This page shows every building block the RootWright docs theme supports, with the Markdown that makes it. It's hidden from search and from the sidebar — use it as a reference while writing, or delete it before launch.
Page frontmatter
---
title: How to add a course in RootWright LMS # shown in the browser tab and search
description: "Create a course in RootWright LMS…" # 110–160 characters
plan: Free # Free | Pro | Free + Pro → pills under the breadcrumb
tested_with: RootWright 1.0.0 (Free), 1.0.0 (Pro) # shown in the meta row
last_verified: 2026-10-26
status: draft # optional — shows a Draft pill
---The breadcrumb, plan pills, reading time, Copy link and Copy for AI buttons are added automatically above the title. Copy for AI copies the page as Markdown so readers can paste it into ChatGPT, Claude or another assistant.
Callouts
Note
Use info (shown as Note) for context the reader should know.
Tip
Use tip for a better or faster way to do something.
Warning
Use warning for something that can surprise the reader.
Caution
Use danger (shown as Caution) when a step can lose data or break a live site.
Beta
Use beta for behaviour that may still change before 1.0.
Pro
Use pro when a feature needs a Pro license. Compare Free and Pro.
Click to expand
Use details for optional depth that most readers can skip.
Any callout takes a custom title: ::: tip Before you publish.
::: tip
Text of the tip.
:::
::: pro Needs RootWright Pro
Text.
:::Steps
- In your WordPress dashboard, go to RootWright → Courses.
- Click Add New Course. A side panel opens with three tabs: Details, Curriculum and Settings.
- Enter a title and click Publish.
::: steps
1. In your WordPress dashboard, go to **RootWright → Courses**.
2. Click **Add New Course**.
3. Enter a title and click **Publish**.
:::Code
Single block, with a file name and highlighted line:
<?php
add_action( 'rootwright/lesson_completed', function ( $student_id, $lesson_id ) {
// Your code here.
}, 10, 2 );Tabs:
curl -u "admin:APPLICATION_PASSWORD" \
https://example.com/wp-json/rootwright/v1/courses?per_page=5const res = await fetch('/wp-json/rootwright/v1/courses?per_page=5')
const courses = await res.json()$response = wp_remote_get( rest_url( 'rootwright/v1/courses?per_page=5' ) );The hook and endpoint names above are examples only — replace them with real ones from the plugin.
Badges
Inline badges: Free Pro New in 1.0 Beta
<Badge type="pro" text="Pro" />Tables
| Setting | What it does | Default | Plan |
|---|---|---|---|
| Course title | Name students see on the course page. | — | Free |
| Drip | Releases lessons on a schedule. | Off | Pro |
Images and video
Screenshots go in docs/public/images/<section>/, videos in docs/public/videos/<section>/.

<video controls preload="none" poster="/videos/courses/add-a-course-poster.webp" width="100%">
<source src="/videos/courses/add-a-course.mp4" type="video/mp4">
</video>Keyboard keys
Press ⌘ K to search the docs.