AJAX Actions and WP-CLI
The addon has no REST API and no custom database tables. Dynamic behavior runs through WordPress AJAX (admin-ajax.php), and one maintenance task is available through WP-CLI.
AJAX actions
Section titled “AJAX actions”Read-only, front-end (available to guests, nonce-verified):
| Action | Purpose | Nonce |
|---|---|---|
reign_load_courses |
[modern_courses] filter and load-more |
reign_courses_nonce |
reign_filter_groups |
[modern_groups] filter |
reign-modern-groups |
reign_load_more_groups |
[modern_groups] pagination |
reign-modern-groups |
reign_learndash_lms_get_course_participants |
Paginated participants list | ajax-nonce |
rtm_ld_atc_woo_product |
Add the linked store product to the cart | reign-ld-buy-course |
Admin-only (authenticated, nonce + capability):
| Action | Purpose | Capability |
|---|---|---|
reign_ld_migrate_reviews |
Run the review migration | manage_options |
reign_ld_check_migration_status |
Poll migration progress | manage_options |
reign_ld_sync_group |
Bulk-join a course’s users into the linked BP group | manage_options |
reign_ld_get_linked_groups |
List BP groups linked to courses | manage_options |
reign_dismiss_ld_groups_slug_notice |
Dismiss the groups slug-conflict notice | edit_posts |
The guest-facing cart action validates the nonce, sanitizes the product IDs, whitelists the purchase method, and confirms the product is genuinely linked to the course before acting.
WP-CLI
Section titled “WP-CLI”One command is registered:
wp reign-ld migrate-reviewsIt migrates existing reviews into the addon’s comment-based review format, the same operation as the admin Review Migration page. Use it for scripted or large migrations. See Course and group reviews.
What the addon does not add
Section titled “What the addon does not add”- No REST API namespace or endpoints.
- No custom database tables.
- No custom post types, taxonomies, capabilities, or cron events.
Persistence is entirely WordPress options plus post, group, user, and comment meta.

