This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
Using the WP DISPLAY FILES plugin, the Permission module allows restricting files for assign role-based permission. In this plugin, the admin can display storage files according to role-based which type of user can see & download these files and folders from frontend and also that user is a logged-in user or not logged-in, it can be decided by the admin.
How to assign Role-based permission to view Files on the frontend
Step 1: Please login to the WordPress admin dashboard and navigate to Add or Edit Shortcodes page.
Step 2: On this shortcode, the page scrolls down to the ‘Permission Settings’ section.
Step 3: In this section, enable the “Login Required?” button.
Step 4: In the same section go to the “Roles” tab and select “Roles” according to your requirements. Which type of user roles do you want to required logged-in or not logged-in, to access files/folders.
Step 5: Enter login required message in given “Login Required Message” textbox which displays when user not logged in.
Step 6: save the permission setting. These selected user’s roles required logged-in permission to view this file page.
Explore the latest in WordPress
Trying to stay on top of it all? Get the best tools, resources and inspiration sent to your inbox every Wednesday.