Title: Sbytes Restrict Preview for Tutor LMS
Author: salmamohamed25
Published: <strong>September 17, 2026</strong>
Last modified: September 17, 2026

---

Search plugins

![](https://ps.w.org/sbytes-restrict-preview-for-tutor-lms/assets/banner-772x250.
png?rev=3700949)

![](https://ps.w.org/sbytes-restrict-preview-for-tutor-lms/assets/icon-256x256.png?
rev=3700949)

# Sbytes Restrict Preview for Tutor LMS

 By [salmamohamed25](https://profiles.wordpress.org/salmamohamed25/)

[Download](https://downloads.wordpress.org/plugin/sbytes-restrict-preview-for-tutor-lms.1.0.0.zip)

 * [Details](https://wordpress.org/plugins/sbytes-restrict-preview-for-tutor-lms/#description)
 * [Reviews](https://wordpress.org/plugins/sbytes-restrict-preview-for-tutor-lms/#reviews)
 *  [Installation](https://wordpress.org/plugins/sbytes-restrict-preview-for-tutor-lms/#installation)
 * [Development](https://wordpress.org/plugins/sbytes-restrict-preview-for-tutor-lms/#developers)

 [Support](https://wordpress.org/support/plugin/sbytes-restrict-preview-for-tutor-lms/)

## Description

Tutor LMS lets you mark lessons as free previews so anyone can watch them. That 
is great for marketing, but it means visitors can consume your sample content without
ever telling you who they are.

Sbytes Restrict Preview for Tutor LMS asks for a free account first. Guests see 
a tabbed Log In / Sign Up form in place of the lesson, and once they are in they
land on the exact lesson they clicked — no dead ends, no hunting through the course
again.

#### What it does

 * Requires visitors to be logged in before viewing preview lessons.
 * Shows a login and registration form together, in tabs, without leaving the page.
 * Returns the visitor to the lesson they wanted after they log in or sign up.
 * Optionally badges preview lessons in the curriculum and shows a free-lesson count
   on each section.

#### Who is never affected

Enrolled students, instructors and administrators keep the access they already have.
Only logged-out visitors are asked to sign in. Lessons that are **not** marked as
previews are left completely alone, so Tutor LMS’s normal enrolment rules continue
to apply to them unchanged.

#### Built on Tutor LMS itself

The plugin does not reimplement authentication. It embeds Tutor’s own `[tutor_login]`
and `[tutor_student_registration_form]` shortcodes, so validation, password handling
and account creation all stay in Tutor where they belong. The redirect uses Tutor’s
own supported `redirect_to` field.

Access is enforced on the server, so the restriction cannot be bypassed by opening
the lesson URL directly or by disabling JavaScript.

#### Privacy

This plugin makes no external requests, loads no remote assets, and collects, stores
or transmits no personal data. It reads Tutor LMS course and lesson data already
in your database, and stores a single settings row. A short-lived cookie is set 
in the visitor’s browser only to remember which lesson they were trying to reach,
so they can be returned to it after signing in.

#### Source code

Development happens at https://github.com/salma25128/sbytes-restrict-preview-for-
tutor-lms — issues and pull requests are welcome. The plugin ships as plain, unminified
PHP, CSS and JavaScript with no build step, so the distributed code is the source
code.

#### Trademarks

Tutor LMS is a trademark of Themeum. This plugin is an independent, third-party 
extension and is not affiliated with, endorsed by, or sponsored by Themeum.

## Screenshots

[⌊The login popup shown when a guest clicks a free preview lesson.⌉⌊The login popup
shown when a guest clicks a free preview lesson.⌉[

The login popup shown when a guest clicks a free preview lesson.

[⌊The same popup on the Sign Up tab, for visitors without an account yet.⌉⌊The same
popup on the Sign Up tab, for visitors without an account yet.⌉[

The same popup on the Sign Up tab, for visitors without an account yet.

[⌊Free preview badges in the course curriculum, with a free-lesson count on the 
section heading.⌉⌊Free preview badges in the course curriculum, with a free-lesson
count on the section heading.⌉[

Free preview badges in the course curriculum, with a free-lesson count on the section
heading.

## Installation

 1. Install and activate Tutor LMS if you have not already.
 2. Upload the plugin to `/wp-content/plugins/`, or install it from the Plugins screen.
 3. Activate the plugin.
 4. Visit **Settings  Restrict Preview** to adjust the wording, colour and options.

To offer sign up as well as log in, enable **Anyone can register** under **Settings
General**. Without it, Tutor’s registration handler will not process new accounts,
so the Sign Up tab hides itself automatically.

## FAQ

### Does this restrict paid or enrolled course content?

No. It only affects lessons that are marked as free previews in Tutor LMS. Every
other lesson keeps Tutor’s normal enrolment gating, untouched.

### Can someone bypass it by pasting the lesson URL?

No. The content is replaced on the server before the page is sent, so a direct URL,
a disabled-JavaScript browser or a crawler all get the same prompt.

### Why is the Sign Up tab missing?

WordPress registration is switched off. Turn on **Anyone can register** under **
Settings  General**. The tab is hidden rather than shown as a dead end, because 
Tutor’s registration handler refuses to create accounts while that setting is off.

### The badges are not appearing on my course page.

Badges are matched to real preview lessons by their URL, and they need a link to
attach to. Themes that render the curriculum with heavily customised markup may 
not expose one. The plugin never guesses from the rendered text, because many courses
never display the word “Free” at all.

### Does it work with page builders?

The server-side gate works everywhere. If your curriculum is rendered somewhere 
unusual and the assets do not load, use the `rptl_load_assets` filter to force them
on.

### Can I change who is allowed through?

Yes, with the `rptl_user_may_view_preview` filter. It receives a boolean and lets
you widen or narrow access.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Sbytes Restrict Preview for Tutor LMS” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ salmamohamed25 ](https://profiles.wordpress.org/salmamohamed25/)

[Translate “Sbytes Restrict Preview for Tutor LMS” into your language.](https://translate.wordpress.org/projects/wp-plugins/sbytes-restrict-preview-for-tutor-lms)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/sbytes-restrict-preview-for-tutor-lms/),
check out the [SVN repository](https://plugins.svn.wordpress.org/sbytes-restrict-preview-for-tutor-lms/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/sbytes-restrict-preview-for-tutor-lms/)
by [RSS](https://plugins.trac.wordpress.org/log/sbytes-restrict-preview-for-tutor-lms/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * Initial release.

## Meta

 *  Version **1.0.0**
 *  Last updated **4 days ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.8 or higher **
 *  Tested up to **7.1.1**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [courses](https://wordpress.org/plugins/tags/courses/)[lms](https://wordpress.org/plugins/tags/lms/)
   [preview](https://wordpress.org/plugins/tags/preview/)[registration](https://wordpress.org/plugins/tags/registration/)
   [Tutor LMS](https://wordpress.org/plugins/tags/tutor-lms/)
 *  [Advanced View](https://wordpress.org/plugins/sbytes-restrict-preview-for-tutor-lms/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/sbytes-restrict-preview-for-tutor-lms/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/sbytes-restrict-preview-for-tutor-lms/reviews/)

## Contributors

 *   [ salmamohamed25 ](https://profiles.wordpress.org/salmamohamed25/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/sbytes-restrict-preview-for-tutor-lms/)