Skip to content

Hooks and Filters

The addon exposes a small set of extension points and consumes several hooks from the Reign theme and community platforms. All are verified in the plugin source.

Filters the settings field definitions used to render and save the TutorLMS settings tab.

add_filter( 'reign_tutorlms_settings_fields', function ( $fields ) {
// $fields is a nested array keyed by group, then field key.
return $fields;
} );

Filters the default column count for [reign_tutor_course] when no column_per_row or columns is passed.

add_filter( 'reign_tutorlms_default_columns', function ( $default_columns, $is_profile_context, $atts ) {
// $default_columns is a string ('3' normally, '2' in a profile context).
return $default_columns;
}, 10, 3 );

Filters the maximum number of categories loaded when [reign_course_categories] is called with count="0" or a blank count. Default is 100.

add_filter( 'reign_course_categories_max', function ( $max ) {
return 250;
} );

While rendering enrolled courses with show_progress="yes", the addon temporarily hooks this Tutor LMS loop action to print a progress bar on each course card, then removes the hook after the shortcode finishes.

Theme and platform hooks the addon consumes

Section titled “Theme and platform hooks the addon consumes”

These are hooks fired by the Reign theme or a community platform that the addon listens to. They are integration points, not APIs the addon defines.

Hook Fired by Used for
alter_reign_admin_tabs Reign theme Adds the TutorLMS tab to the Reign options page.
render_theme_options_page_for_tutorlms Reign theme Renders the TutorLMS tab content.
render_theme_options_for_reign_tutorlms_shortcodes Vertical tabs skeleton Renders the Shortcodes sub-tab.
render_theme_options_for_reign_tutorlms_profile Vertical tabs skeleton Renders the Profile Integration sub-tab.
reign_other_premium_addon_license_panel Reign theme Renders the EDD license panel.
bp_setup_nav BuddyPress / BuddyBoss Adds the “My Courses” profile tab.
peepso_navigation_profile PeepSo Adds the “My Courses” profile tab.
peepso_profile_segment_tutorlms_courses PeepSo Renders the PeepSo tab content.
body_class WordPress Adds reign-tutor-custom-colors when Tutor’s color preset is default.

There are no REST API endpoints, no custom database tables, no blocks, no WP-CLI commands, and no cron events. There are no AJAX actions in the current release.