How to Suppress Hidden Lessons and Topics on LearnDash Course Pages

David Bullock — 

Requires Modification of LearnDash Templates

This patch is for LearnDash displayed courses, and does not work with 3rd Party Templates such as BuddyBoss Social Learner.

Filename: /wp-content/plugins/sfwd-lms/templates/course.php
Filename: /wp-content/plugins/sfwd-lms/templates/course_content_shortcode.php

Add the following code near the top of the file, after the comments.

This code walks the lesson and topics arrays provided to the template, and rebuilds them without any of the content shielded by Memberium content protection.

  • Was this Helpful?
  • YesNo