Skip to content

Storage keys, query variables and who may do what are in Settings keys and stored data.

Filter Arguments Use
reign_llms_default_settings $defaults Change a default for the whole site.
reign_llms_course_layout $layout, $course_id Pick reign or spotlight per course.
reign_llms_course_sections $sections, $layout, $adapter Reorder or remove course page sections.
reign_llms_related_ids $ids, $course_id Change which courses are related.
reign_llms_instructors_per_page 12 Page size of the instructor directory. Ignored when the shortcode sets total.
reign_llms_reader_enabled true Return false to remove reading mode and its switch from lessons and quizzes. The setting only picks how a lesson opens.
reign_llms_courses_tab_visible true, $profile_user_id, $viewer_id Hide the Courses tab (menu item and page) from some viewers, or everywhere.
reign_lifterlms_activity_text $html, $type, $user_id, $course_id Change an activity sentence.
reign_llms_locate_template $path, $part Change the file a part loads.
reign_llms_{part}_data $data Change template variables.
Action Use
reign_llms_loaded Fires once the add-on has loaded.
reign_llms_upgrade WP-Cron event that finishes the 2.6.0 data move when no administrator visits.
reign_llms_before_{part}, reign_llms_after_{part} Around every template.

From the theme: reign_lifterlms_late_assets (a course list placed by a page builder, widget or template loads the card styles), reign_course_layout_sections, reign_course_reviews_html, alter_reign_admin_tabs, render_theme_options_page_for_lifterlms and reign_licensed_products (the licence row). The add-on both fills and reads reign_course_rating: the review code supplies the rating and the Detail card reads it.

From LifterLMS: llms_user_enrolled_in_course, after_llms_mark_complete, llms_user_earned_certificate, llms_user_earned_achievement, lifterlms_quiz_completed, lifterlms_locate_template, lifterlms_loop_columns, lifterlms_before_loop, lifterlms_student_dashboard_index, lifterlms_single_lesson_before_summary and lifterlms_single_quiz_before_summary.

From WordPress and community plugins: bp_setup_nav, peepso_navigation_profile, peepso_profile_segment_courses, add_meta_boxes_course, save_post_course, is_protected_meta, pre_get_posts and the admin_post_reign_llms_review, admin_post_nopriv_reign_llms_review and admin_post_reign_llms_group_sync handlers.

The review title in course/reviews.php runs LifterLMS’s own lifterlms_reviews_section_title filter.

The activity filter receives the sentence and its type: enrolled, course_done, lesson_done, certificate, achievement, quiz_passed or quiz_failed. Return an empty string to skip the post.

add_filter( 'reign_lifterlms_activity_text', function ( $html, $type ) {
if ( 'enrolled' === $type ) {
return $html . ' - welcome aboard!';
}
if ( 'lesson_done' === $type ) {
return '';
}
return $html;
}, 10, 2 );

An enrolment then posts “Sara Lopez enrolled in PHP for WordPress Beginners - welcome aboard!”, and finished lessons post nothing.

Each template’s data filter can add to it without a copy. This adds “Design track” to the card line of courses in the “design” category.

add_filter( 'reign_llms_loop_meta_data', function ( $data ) {
if ( has_term( 'design', 'course_cat', get_the_ID() ) ) {
$data['parts'][] = __( 'Design track', 'reign-child' );
}
return $data;
} );

The card then reads, for example, “5 lessons · 90 minutes · Beginner · Design track”.

More task-based snippets, and one full template override, are in Common changes with a few lines of code.