Skip to content

Every part the add-on prints is a template you can replace from your child theme. Nothing needs a code edit in the plugin.

  1. Pick the file from the template reference.
  2. Copy it to {child-theme}/reign-lifterlms/<same path>. For example templates/course/reviews.php becomes {child-theme}/reign-lifterlms/course/reviews.php.
  3. Edit your copy. Keep the @version line in the header.

The add-on looks in the child theme, then the parent theme, then its own folder.

Each template has an @version line. When an update changes a template and your copy carries an older @version, it is listed as out of date on the Update status card. Find the card under Reign Settings > Integrations, then Configure on the LifterLMS tile. Compare, merge and update the @version line.

For a part named course/related, three hooks run (a / or - in the name becomes _):

  • Filter reign_llms_course_related_data( $data ) changes the variables the template receives.
  • Action reign_llms_before_course_related( $data ) prints before it.
  • Action reign_llms_after_course_related( $data ) prints after it.

Filter reign_llms_locate_template( $path, $part ) changes which file is used.