• flashjunkie

    (@flashjunkie)


    Hi there,

    Some help figuring this out would be great.

    We are hooking into the ‘maybe_expire’ function in the class-all-access-pass.php file to update our mailing list to reflect that their account/pass has expired. We also send the user an email at the exact time of expiry informing them and encouraging them to renew.

    Unfortunately it seems that EDD is only running the ‘maybe_expire’ function on user interaction (attempting to download a file etc) or if we view the users AAP in the admin area, this also triggers the ‘maybe_expire’ function.

    This means that our users only know they are expired when they try to do something on the website. I ideally want the website to do a daily check on all access passes and set expired passes accordingly.

    I see in the all-access-status-functions.php that this functionality is in place, and I have checked the CRON schedule and indeed the task is running daily, however our AAPs are not being expired accordingly.

    If I view a users AAPs in the admin panel, and their passes expiry date has lapsed, the moment i ‘view details’ on their AAP, the system runs the maybe_expire function, they get updates on our mailing list and they receive a mail. I can also see in the payment notes that the “All Access expired for the product called…” note is generated at this time also.

    Is their a reason that the automated cron task is not doing its job properly?

    (Sorry if this message does not make sense, i’m still trying to understand the issue myself!)

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘All Access Passes Not Expiring Automatically via Cron’ is closed to new replies.