Settings Keys and Stored Data
Reign LearnDash Addon overviewPremiumGet Reign LearnDash Addon →
Where the add-on keeps its data, the key of every setting, and who may change what. Use it for WP-CLI, migrations and support checks.
Where settings are saved
Section titled “Where settings are saved”All settings live in one array, reign_options['learndash'], inside the reign_options option that holds the Reign theme’s own settings. Only values you changed from the default are saved. A value left at its default is not stored, so it keeps following the default. Nothing is written when the add-on is activated.
Read what a site has saved:
wp option pluck reign_options learndashDefaults can be changed for the whole site with the reign_ld_default_settings filter. See Hooks and filters.
Setting keys
Section titled “Setting keys”| Card | Key | Screen label | Values | Default |
|---|---|---|---|---|
| Course page | course_template |
Template | reign, classic, spotlight, academy |
reign |
| Course page | course_sections |
Sections | content, materials, instructor, features, related |
content, materials, instructor, features, related |
| Course page | related_title |
Related courses heading | text | Related courses |
| Course page | related_count |
Related courses shown | 1 to 12 | 3 |
| Course page | focus_extras |
Focus mode extras | on, off |
off |
| Course archive | archive_layout |
Layout | reign, classic, soft, catalog |
reign |
| Course archive | card_fields |
Cards show | badge, excerpt, instructor, meta, rating, progress, button |
all seven |
| Course archive | filter_bar |
Filter bar | search, category, tag, price, instructor, sort, view |
search, category, price, sort, view |
| Images | default_cover_img_url |
Default cover image | image URL | empty |
| Images | default_course_img_url |
Default course image | image URL | empty |
| Course groups | course_groups |
Course groups | on, off |
off |
| Course groups | course_group_privacy |
New group privacy | access, public, private, hidden |
access |
| Course groups | course_group_role |
Students join as | member, mod, admin |
member |
| LearnDash groups | ld_groups |
LearnDash group sync | on, off |
off |
| LearnDash groups | ld_group_privacy |
New group privacy | access, public, private, hidden |
access |
| LearnDash groups | ld_leader_role |
Leaders join as | mod, admin |
admin |
| LearnDash groups | ld_user_role |
Users join as | member, mod, admin |
member |
| LearnDash groups | ld_group_delete |
Delete the social group with the LearnDash group | on, off |
off |
| Activity posts | activity |
Post when a member | enrolled, course_done, lesson_done, topic_done, quiz_passed, quiz_failed, course_comment, lesson_comment |
enrolled, course_done, quiz_passed |
| Member profiles | profile_courses_tab |
Courses tab | on, off |
on |
Notes:
- A saved checklist keeps the order of the screen, whatever order the form posts.
- A saved number is held between its minimum and maximum.
- An image URL that points at a file the add-on folder no longer has (the 5.1.0 bundled placeholders) is ignored, so the theme placeholder shows.
- Course groups, LearnDash groups and Activity posts are saved and used only while BuddyPress 14 or newer, or BuddyBoss, is active. Member profiles is BuddyPress only. A hidden card keeps its saved values.
Data saved on courses, groups and social groups
Section titled “Data saved on courses, groups and social groups”| Key | Where | What it holds |
|---|---|---|
_reign_ld_template |
Course post meta | The course’s own page template. Empty follows the site setting. |
rla_ccf_enable |
Course post meta | yes when the course uses its own “This course includes” list. |
rla_ccf_features |
Course post meta | The list: an array of icon names and text lines. |
_course_image_id |
Course post meta | Attachment ID of the course cover image from the Reign box. |
_group_image_id |
LearnDash group post meta | Attachment ID of the group cover image from the Reign box. |
reign_bp_group_field |
Course post meta | ID of the linked social group. |
reign_ld_gp_bp_sync_id |
LearnDash group post meta | ID of the linked social group. |
_reign_linked_course |
Social group meta | ID of the linked course. |
reign_bp_gp_ld_sync_id |
Social group meta | ID of the linked LearnDash group. |
reign_ld_promoted |
Social group meta | The members the add-on promoted because they lead the LearnDash group, so only those are demoted later. |
Upgrade data
Section titled “Upgrade data”| Key | Where | What it holds |
|---|---|---|
reign_ld_upgrade_log |
Option | One line per finished upgrade step. The Update status card and the one-time notice show it. |
reign_ld_upgrade_noticed |
Option | Set once the “moved your saved settings” notice has been shown. |
_reign_ld_prev_content |
Post meta | A post’s content as it was before [reign_courses] became [modern_courses]. wp reign-ld upgrade --revert-shortcodes restores it. |
_reign_ld_prev_elementor_data |
Post meta | The same for Elementor data. |
_reign_ld_510_ prefix |
Post meta | 5.1.0 values the upgrade stopped reading but did not delete. |
Who can do what
Section titled “Who can do what”| Action | Needs |
|---|---|
| Open the LearnDash settings screen, save or reset a card, press Sync now | manage_options |
| See the upgrade notices and the outdated overrides list | manage_options |
| See the “paused” and “community features need BuddyPress 14” notices | activate_plugins |
| Change the Reign box on a course or LearnDash group | edit_post for that course or group |
| Search for an existing social group in the Reign box | edit_posts. Site administrators see every group; others see only groups they run. |
Run wp reign-ld sync or wp reign-ld upgrade |
Shell access to the site |
Visitors need no capability. The Courses tab and the grids follow LearnDash access and the reign_ld_courses_tab_visible filter.
The profile Courses tab address
Section titled “The profile Courses tab address”On BuddyPress the tab lives at /<members base>/<member>/courses/, with sub-tabs enrolled (Learning) and teaching (Teaching). Paging uses rld_page. The Learning filter uses ?status=all, ?status=in_progress or ?status=completed and is honoured only on a member’s own profile.

