[wp-trac] [WordPress Trac] #35491: Add a function to check whether a hook is scheduled
WordPress Trac
noreply at wordpress.org
Sun Jan 17 04:46:49 UTC 2016
#35491: Add a function to check whether a hook is scheduled
-------------------------+-----------------------------
Reporter: dlh | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Cron API | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
I'm working with a plugin that calls `wp_schedule_event()` with an
unpredictable value for `$args`.
Sometimes it would be helpful to know whether this plugin's event is
scheduled, but because I can only guess at `$args`, I can't always detect
it with `wp_next_scheduled()`.
The attached patch attempts to address this scenario with a function that
checks only whether a hook is scheduled, regardless of its `$args`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35491>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list