Support » Plugin: Paid Memberships Pro » Expire on Set Date – MULTIPLE LEVELS

  • Resolved mathew51b


    Hi guys,

    Been using some code created by ChrisLema found here

    I have 7 levels that I want to expire on March 31st 2014. I have got the code working for one individual level, but I can’t make it work for multiple levels. I’ve tried repeating the array line, listing the levels (i.e. \ array = “3”,”4″,”5″ = \), I’ve tied inputting the code several times using different array number each time (Would not recommend this as it completely crashed access to the website and wordpres admin – only fix was by resyncing the original functions.php file to my server via dreamweaver).

    Any ideas on what I need to do to make the code work for more than one level of membership?


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


    Mathew, you should just be able to edit this line:

    $custom_expirations = array(“1” => “2013-01-01”);

    to something like

    $custom_expirations = array(“1” => “2015-03-31”, “2” => “2015-03-31”, “3” => “2015-03-31”, “4” => “2015-03-31”, “5” => “2015-03-31”, “6” => “2015-03-31”, “7” => “2015-03-31”);

    Is that what you tried and it didn’t work? If so I can test and update the code. Thanks

    Thank you so much for your feedback.

    That code worked perfectly and the membership system is exactly what I wanted it to be now.


    Plugin Author Jason Coleman


    Great. Glad this worked for you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Expire on Set Date – MULTIPLE LEVELS’ is closed to new replies.