Title: Dynamic date based cron
Last modified: July 31, 2018

---

# Dynamic date based cron

 *  Resolved [siddheshsj](https://wordpress.org/support/users/siddheshsj/)
 * (@siddheshsj)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/dynamic-date-based-cron/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdynamic-date-based-cron%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [7 years, 10 months ago](https://wordpress.org/support/topic/dynamic-date-based-cron/#post-10543818)
 * 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.

 * ![](https://ps.w.org/wp-crontrol/assets/icon.svg?rev=3539529)
 * [WP Crontrol](https://wordpress.org/plugins/wp-crontrol/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-crontrol/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-crontrol/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-crontrol/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-crontrol/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-crontrol/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/dynamic-date-based-cron/#post-10543818)
 * Status: resolved