Paid Memberships Pro
[resolved] Expire on Set Date - MULTIPLE LEVELS (4 posts)

  1. mathew51b
    Posted 3 years ago #

    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?



  2. Jason Coleman
    Plugin Author

    Posted 3 years ago #

    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

  3. mathew51b
    Posted 3 years ago #

    Thank you so much for your feedback.

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


  4. Jason Coleman
    Plugin Author

    Posted 3 years ago #

    Great. Glad this worked for you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Paid Memberships Pro
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic