[wp-trac] [WordPress Trac] #32656: Add hooks to allow hijacking cron implementation
WordPress Trac
noreply at wordpress.org
Tue Apr 3 03:08:39 UTC 2018
#32656: Add hooks to allow hijacking cron implementation
-----------------------------------+----------------------------
Reporter: rmccue | Owner: peterwilsoncc
Type: feature request | Status: assigned
Priority: normal | Milestone: 5.0
Component: Cron API | Version:
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses:
-----------------------------------+----------------------------
Comment (by peterwilsoncc):
In [attachment:32656.4.diff] :
* Added `wp_get_scheduled_event()` per @ethitter's notes above, this
should allow custom runners to avoid filtering options
* `wp_get_schedule()` altered to use the new function.
* Tidied up the docs a bit to include recommended return values and some
corrections
@johnbillion: From @DavidAnderson's earlier work, each function returns
values for plugins to emulate. Plugin authors can still return unexpected
values but that's a problem elsewhere in WP so I'm inclined to let it
pass.
I've written too much code in this patch to commit it without someone else
adding `commit` keyword.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32656#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list