Hook / Actions when ticket sales end or event ends.

Home Forums Calendar Products Events Calendar PRO Hook / Actions when ticket sales end or event ends.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1027652
    Ameet
    Participant

    I saw some older post from 2012 about Actions when an event ends, but wondering if you have added any additional Actions since then to address the issue.

    1 .We are trying to automatically send the organizers the Attendees List once the ticket sales have ended and would like to hook into something like that.

    2. When an event ends, we want to send another email to admins to indicate that organizers have to get paid out.

    The only way I can see this working is creating a wp_cron job to run hourly, but wanted to know if you had any other suggestions or better way to do it?

    #1027673
    George
    Participant

    Hey @ameet,

    Thanks for reaching out here. If your main goal here is for there to be an action that fires when an event “ends”, then unfortunately at this time there is still not an action that fires like this; it’s a very tricky thing to solve, because you mention wp_cron() for example, which is something we’ve been thinking about.

    However, even wp_cron() isn’t a great solution [from our perspective, in terms of adding the action to our plugin and making it a thing that can be “hooked on to” by other developers] because wp_cron() is not a real Cron job run by your server. Real cron jobs run autonomously and at the level of the server. WP_Cron jobs run on a schedule, but only of there have been visitors to the site. So if you have an hourly WP_Cron job, but then there’s a four hour period where nobody visits your site, the action will not fire for any of those four hours 🙁

    The same limitations are at play if, for example, you want to determine when ticket sales have ended, or just anything tied to the passage of a specific date/time.

    Does this information help at all? Let me know!

    Thanks,
    George

    #1027693
    Ameet
    Participant

    Yes, I hear you, that was my interpretation of how wp_cron worked as well. We do have a pretty active site, but I am not a fan of that dependency when their is a lag in traffic, it’s just not dependable.

    It seems like I’d have to do something very custom and either override the wp_cron with linux (eg. https://rtcamp.com/tutorials/wordpress/wp-cron-crontab/) or build a cron job on my server that taps into the mysql database and then run some things. Obviously not the answer I wanted to hear but I definitely can see how this is tricky.

    Thanks, I’ll post again if and when I have a solution. I may hit you up to find out how to trigger the Attendees list email from the backend, I’m sure I can dig around.

    #1028337
    George
    Participant

    Please do post again if you’re able to solve this puzzle…it’s an interesting problem! I’ll close this thread for now for the sake of keeping things organized. If you want to reference this thread, just link back to it and we’ll pick up where we left off 😀

    Cheers,
    George

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Hook / Actions when ticket sales end or event ends.’ is closed to new replies.