• Resolved siddheshsj

    (@siddheshsj)


    Hi,

    Your plugin is amazing in running cron jobs. But i was wondering if i could use it to run after event date get expired. What i am looking is to run event delete function hook using cron job.

    Any help much appreciated,

    Thanks,
    Siddhesh

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Thanks for the message!

    This isn’t something that I’m going to implement because it complicates everything within the plugin. The cron system in WordPress stores events against their date, so making the date dynamic would be pretty complex.

    Your best bet might be to schedule a frequent event (eg every 10 minutes) that uses logic to check if it needs to perform its action. Similarly to how WordPress uses an event to periodically delete trashed posts.

    John

Viewing 1 replies (of 1 total)
  • The topic ‘Dynamic date based cron’ is closed to new replies.