[wp-trac] [WordPress Trac] #35491: Add a function to check whether a hook is scheduled

WordPress Trac noreply at wordpress.org
Sun Jan 17 17:17:31 UTC 2016


#35491: Add a function to check whether a hook is scheduled
--------------------------------------+------------------
 Reporter:  dlh                       |       Owner:
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  4.5
Component:  Cron API                  |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------

Comment (by dlh):

 > Anything else isn't supported and leads to errors.

 My mistake.

 > `wp_next_scheduled()` returns the next scheduled timestamp, that's what
 the function name implies.

 Sorry, I meant that any new function that returned the timestamp could
 introduce the confusion. But it might not. In any case, I'm happy to see
 this go in either direction.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35491#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list