WP File Access Manager

The ultimate solution to control access to WordPress Media Library Files.


First of all, Thank you so much for purchasing WP File Access Manager.

This Documentation is here to show you how you can install and use WP File Access Manager Easily and Efficiently.

For Detailed information and features of the Plugin, Please click here to go to CodeCanyon Plugin Page

To get started you need to Purchase WP File Access Manager for only $20 from Codecanyon. Click Here to Pucrhase WP File Access Manager
If you've already purchased the plugin, you can continue to next step.

Step 1: Download from CodeCanyon

  1. After Purchasing the plugin on CodeCanyon. Go to Downloads page
  2. Find the Plugin on the list and click on Green Download Button
  3. Save the zip file on your computer

Step 2: Install via WordPress Admin (wp-admin)

Please follow these steps to install via wp-admin

  1. Login as administrator to wp-admin using your username and password
  2. Go to Plugins-> Add New
  3. Click on Upload Plugin button
  4. Click on Choose File and choose the file you just downloaded from codecanyon
  5. Click on Install Now
  6. Click on Activate Plugin once the installation is done
  7. Its all, and the plugin is installed on your site now!

So now, You have the plugin installed on your WordPress Website, Congrats!

The plugin adds some custom code in your .htaccess file if you're using apache. However, in some cases it may fail for a few reasons like .htaccess file not being writeable by WordPress.

If you've activated the plugin and added some restrictions but nothing is working, please try to deactivate and reactivate the plugin first. If that doesn't solve the issue, please continue with the process below:

Apache Server

If you're using apache server, the plugin tries to automatically add some code to your .htaccess file. If your .htaccess file is not writeable by wordpress, these rules will not be added automatically, in that case, you need to put the following lines of code in your .htaccess file at the very bottom:

	# WP File Access Manager start
	RewriteRule ^wp-content/uploads(/.*\.\w+)$ index.php?wfam_requested_file=$1 [QSA,L]
	# WP File Access Manager end
	

Nginx Server

If you're using nginx server, You need to put the following lines to your nginx config:

	location ~ "^/wp-content/uploads/(.*)$" {
	    rewrite ^/wp-content/uploads(/.*\.\w+)$ /index.php?wfam_requested_file=$1;
	}
	

Openlitespeed Server

If you're using nginx server, You need to put the following lines to your nginx config:

	# WP File Access Manager start
	RewriteRule ^/?wp-content/uploads(/.*\.\w+)$ index.php?wfam_requested_file=$1 [QSA,L]
	# WP File Access Manager end
	

After activating the plugin, you'll notice a New submenu item under Media called File Access Manager. Click on the menu and you'll get a page with a few tabs. That's the interface you'll be dealing with to use the plugin. Its very simple and straightforward. All the tabs and fields contains proper instructions about how things works but still here are some more details on each of the tabs and settings.

The first tab is Restrict Individual Files, You can select any file or upload a new file from this interface and then setup access settings for the selected/uploaded file. Please remember, if a file has access settings assigned at individual level, that's the setting the file will use. Specially The Require Login for This File field controls most of it. So, If you want individual file settings to be ignored for any file, make sure you uncheck the Require Login for This File field.

However, Let's do a test setting:

Once you're on the page, Click on the button that says Upload or Select a File

It will bring up the media library, select any file you want to manage access for and click on Select This File button on bottom right corner of the popup window

The page will now display additional fields to set access for the selected file.

1. Require Login for this file: Check it if you want this file to be only accessible by Logged in users. User's who are not logged in will get a 404 error when they browse the file url

2. Access Type: This setting is related to the next 2 settings (User Roles and Users). This field will tell those fields about what to do with their data.
If you choose allow here, the roles and users you assign on next 2 fields will have access to this file.
If you choose disallow here, the roles and users you assign on next 2 fields won't have access to this file.

3. Select User Roles: Select the roles that should or should not (based on access type above) have access to this file

3. Select Users: Search and select the users that should or should not (based on access type above) have access to this file. You can search by user's id, name, email etc.

Once you're done setting up the restrictions for the file, hit Save Changes and you're all set! Test the file on your browser and it should have the restrictions applied.

File Type Access:

Sometimes, you may only want to restrict a specific file type. For example, you may only want to restrict PDF files to keep those protected and use in PDF Viewer for WordPress Plugin

On this page you can set access options for all file types you've uploaded on your Media Library. The plugin will check media library and automatically generate and display the settings for each of the file types you have on your website.

Settings on this page are used when a file doesn't have access settings at individual level.

Settings are pretty much same as Individual File Access Settings.

1. Require Login for this file: Check it if you want files of this file type to be only accessible by Logged in users. User's who are not logged in will get a 404 error when they browse the file url

2. Access Type: This setting is related to the next 2 settings (User Roles and Users). This field will tell those fields about what to do with their data.
If you choose allow here, the roles and users you assign on next 2 fields will have access to files of this file type.
If you choose disallow here, the roles and users you assign on next 2 fields won't have access to files of this file type.

3. Select User Roles: Select the roles that should or should not (based on access type above) have access to files of this file type

3. Select Users: Search and select the users that should or should not (based on access type above) have access to files of this file type. You can search by user's id, name, email etc.

Once you're done setting up the restrictions for the file, hit Save Changes and you're all set! Test any file on your browser and it should have the restrictions applied.

On this page you can set access options for all the files you've uploaded on your Media Library.

Settings on this page are used when a file doesn't have access settings at individual level or file type level.

Settings are pretty much same as other tabs.

1. Require Login for this file: Check it if you want all files to be only accessible by Logged in users. User's who are not logged in will get a 404 error when they browse the file url

2. Access Type: This setting is related to the next 2 settings (User Roles and Users). This field will tell those fields about what to do with their data.
If you choose allow here, the roles and users you assign on next 2 fields will have access to all files.
If you choose disallow here, the roles and users you assign on next 2 fields won't have access to all files.

3. Select User Roles: Select the roles that should or should not (based on access type above) have access to all files

3. Select Users: Search and select the users that should or should not (based on access type above) have access to all files. You can search by user's id, name, email etc.

Once you're done setting up the restrictions for the file, hit Save Changes and you're all set! Test any file on your browser and it should have the restrictions applied.

Help/About page contains lots of information about the plugin, documentation, support and other useful information. Go ahead and have a look at the page to see what's there!

This setting pages tht comes with WP File Access manager are available to admins only. However, in some cases, you may want to allow other user roles to be able to access this setting page and work on restrictions.

To Do that the plugin has a filter, You need to put the following Lines on your active Theme's functions.php file:

function your_prefix_update_wfam_capability(){
	return 'edit_others_posts'; // For complete list of capabilities, please head over to: https://wordpress.org/support/article/roles-and-capabilities/
}
add_filter( 'wfam_required_capability_for_admin_pages', 'your_prefix_update_wfam_capability', 10 );
	

For complete list of capabilities, please head over to: https://wordpress.org/support/article/roles-and-capabilities/

Updates ?

You'll get all the plugin updates from codecanyon. You'll see notification in your wp-admin if there's a new update available. And then you can download the update from codecanyon downloads page.

Click Here to go to CodeCanyon Downloads Page

Support ?

For any kind of technical assistance regarding PDF Viewer for WordPress, Please go to our HelpDesk and create a ticket. 

Click Here to Go to ThemeNcode HelpDesk

Please don't forget to include purchase code while creating ticket, otherwise your ticket may not be replied.

 

Your Satisfaction is important to us and we work hard to ensure that. If you like the plugin, Please rate it on CodeCanyon.

Every Single review is important as it helps other users to understand the quality of our plugin.

Please let us know how can we help before leaving a negative review for the plugin. We'll provide a solution.

 

You can Rate PDF Viewer for WordPress from CodeCanyon.net Downloads page.

Click Here to go to CodeCanyon Downloads Page

Please check out the codecanyon product page for changelog

Thats all you need to know about the usage of WP File Access Manager Plugin. Please feel free to let us know by support ticket, if you have any questions or ideas to improve things we provide.

Your input is important to us and we care every single input from you.

We Hope you Enjoy using WP File Access Manager!

 

Thank You

Themencode Team

www.themencode.com