By default, LearnDash course materials are displayed to everyone, both enrolled and unenrolled users. Many people would like course materials only available to those who are enrolled in the course.
There are two basic ways to handle this:
- You can use the following shortcodes that LearnDash provides to only show your materials to enrolled users.
- You can place your materials in the first lesson of the course, instead of the course itself. This will protect them automatically because a user can't access any course lessons unless they are enrolled.
We cover both options in this video, along with a few other tips to keep in mind.
There is a third option that doesn't use the LearnDash materials feature, but instead uses the block editor. This will place materials directly in your content area, and not use the separate "Materials" tab.
For this method, we'll be using the block editor and the "LearnDash Student" block. This block does the same thing as the shortcode above, just in block format. It's essentially a group that you can add other blocks to, and those blocks will only be visible to enrolled users.
View the video below:
You need to be a premium member to continue accessing this content.