Skip to content

Hooks and Filters

The hooks below are provided by the addon (fired or filtered in its own code) and are safe to build on. This is a curated list of the developer-facing extension points, not an exhaustive dump of every internal do_action.

The addon has no REST API, no custom database tables and no cron. State lives in post meta, user meta, BuddyPress group meta, and the shared reign_options array.

Action Fired Purpose
reign_lifterlms_loaded After the addon boots Run code once the addon is loaded.
rlla_llms_single_course_content Single course body Add content to the single course; the addon renders the tabs (priority 20) and related courses (priority 30) here.
rlla_render_course_tab_data_for_{tab} Inside each course tab Render the body of a specific tab, where {tab} is description, pricing_plan, curriculum, instructors, review, video or audio.
reign_lifterlms_render_theme_options_for_{context} Settings tab Output settings fields for a context (llms_general, llms_related_course, buddypress).
reign_bp_lifterlms_after_register_activity_actions After BP activity types register Register additional learning activity types.

The addon also fires Reign’s own reign_before_content_section and reign_after_content_section around LifterLMS main content, and consumes many LifterLMS core hooks (lifterlms_*, llms_*) and Reign theme hooks (reign_*).

Filter Default Purpose
reign_lifterlms_courses_default_per_page 12 Default page size for the [reign_lifterlms_courses] shortcode.
rlla_llms_course_shortcode_args query args array Adjust the course shortcode query.
rlla_llms_filter_course_author_url author URL Instructor link in the instructors shortcode.
Filter Purpose
reign_lifterlms_course_data_tabs Add, remove or reorder the single-course tabs.
Filter Default Purpose
reign_llms_star_review_color #ffb606 Star color.
reign_lifterlms_reviews_section_title “What Others Have Said” Review list heading.
llms_review_thank_you_text “Thank you for your review!” Post-submit message.
rlla_llms_course_review_gravatar_size 60 Review avatar size.
rlla_llms_course_review_analytics_exception / rlla_course_review_analytics_exception analytics array Handle out-of-range ratings in the analytics summary.
Filter Default Purpose
reign_lifterlms_get_author author HTML Filter the rendered author block.
rlla_llms_get_author_image avatar HTML Filter the author avatar.
rlla_llms_course_author_url author URL Filter the author archive URL.
reign_lifterlms_author_avatar_placeholder empty Placeholder avatar.
reign_llms_course_search_form_format html5 or xhtml Search form markup format.
reign_lifterlms_get_course_search_form form HTML Filter the course search form.
Filter Default Purpose
rlla_llms_widget_enrolled_students_limit 20 Max students shown by the Enrolled Students widget (0 to show all).
rlla_llms_student_avatar_size 96 Avatar size in the Enrolled Students widget.
Filter Purpose
rlla_lifterlms_vertical_tabs Add vertical sub-tabs to the LifterLMS settings tab.
reign_lifter_options_activity_settings_list Adjust the list of BuddyPress activity settings.
reign_lifterlms_allowed_html_tags Allowed HTML for the settings tab markup.

This addon shares patterns with the other Reign LMS addons. Its AJAX actions are namespaced (reign_llms_update_student_group_enrollment, reign_llms_bulk_enroll_group_students) specifically so they do not collide with the generic action names used by reign-sensei-addon.