Stop non-loggedin users from Access the Course Directory

This tip allows you to put restrictions on who all can access the course directory.

Below is code tip , so you need the WPLMS Customizer plugin installed in your WPLMS setup .

Here’s how you can do it:

1. Go to WP Admin -> Plugins -> Editor -> WPLMS Customizer
2. Locate File customizer_class.php
3. Add the below line in the function public function __construct()

PHP Code:

 

4. Now, add the function redirect_if_not_loggedin just before the function activate:

PHP Code: 


 

Was this article helpful?

Related Articles