#36682 closed enhancement (duplicate)
More filters in the cron system, to allow more plugin interaction
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.6 |
Component: | Cron API | Keywords: | |
Focuses: | Cc: |
Description
The attached patch adds two additional filters to wp-includes/cron.php.
These (when combined with the already-existing filters) should allow (amongst other things) a plugin to reliably interact with any part of WP's cron system, which currently is not possible (or only possible with gross hacks, such as filtering on options loading of the 'cron' option).
This includes the possibility for a plugin to store the cron events in a different storage mechanism entirely (i.e. store in a separate table, instead of a single serialized options array). Various plugins which rely upon reliable more cron events than the race-y system already implement their own systems externally (e.g. see some of the discussion here: https://github.com/woothemes/woocommerce/issues/3467 ), so there is certainly demand for this.
Documented patch adding two filters to wp-includes/cron.php