• Hello!

    I need to know some information before I start to set up this plugin on my site.

    I have a downloads section on my site with hundreds of files. This content would be hidden.

    I would like to do the following:

    – make 2 groups:
    1) is for members who paid and access the downloads for 3 months
    2) A ‘Test Group’ – when members subscribe to downloads they can choose a test group first without paying. subscribing to this group day can download anything for 1 day for free. After this time is expired they can not acccess downloads anymore EXCEPT if they subscribe to a payment group…………

    Is this possible with this plugin?

    I use paypal to recieve any payments.

    https://www.ads-software.com/extend/plugins/paid-memberships-pro/

Viewing 1 replies (of 1 total)
  • Plugin Author Jason Coleman

    (@strangerstudios)

    jaycee,

    You can do something like this by adding some code to the functions.php of your active theme.

    I believe I have some code you can copy/paste on the support site, but the gist would be:

    0. Setup your levels. The test group can be set to expire in 1 day. (You might want to do 2 days, because 1 “day” != 24 hours according to the way expiration works)

    1. Lockdown the files (https://www.paidmembershipspro.com/2011/10/locking-down-protecting-files-with-pmpro/ — add a rewrite rule to htaccess or otherwise to run files through the getfile.php script)

    2. Hook into pmpro_after_checkout to setup a user meta field when people sign up for the test group level.

    3. Hook into pmpro_registration_checks to check that user meta vs the membership level so people can’t sign up for the test level if they have already.

    People will be able to signup with a new user account/email address, you can think of clever ways to try to stop that if you need to.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Paid Memberships Pro] does PMPro know the following?’ is closed to new replies.