Wordpress plugin to restrict access to files only after registration

0

I have a client who has a Wordpress site and wants to limit access to certain PDF files only to those who register on the site. The problem is that there are several PDFs and the user-made record should only apply to that particular PDF, so you can not see the others unless you ask the site administrators to release the new PDF.

I have installed the "Ultimate Membership Pro" plugin on this site, but I have not found a way to limit access in each PDF record.

I wonder if this is possible in Wordpress, via code or plugin.

    
asked by anonymous 16.10.2018 / 17:22

2 answers

0

Try this CopySafe PDF Protection

    
18.10.2018 / 20:10
0

1 - Create a custom post type.

2 - Install the ACF plugin.

3 - Create a field group, called: PDF

4 - Create the rule to be shown only for your custom post type

5 - Create the fields for the pdf, file type and a select or checkbox or radio with the values referring to the types of users of wordpress ... administrator, editor, author, subscriber ...

6 - Go to the menu of your cistom post type, create a new one, upload the file and arrow to scroll, in the select. Then that PDF, record created, will be referenced to a specific role.

7 - At the time of listing on the site, these files, make the normal call (loop) and make a check of the user that is currently logged out and show only the files referring to your role with an IF. p>     

18.10.2018 / 22:12