[wp-trac] [WordPress Trac] #42660: Single event scheduler

WordPress Trac noreply at wordpress.org
Wed Nov 22 08:08:40 UTC 2017


#42660: Single event scheduler
--------------------------+------------------------------
 Reporter:  skarabeq      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  4.9
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  performance
--------------------------+------------------------------

Comment (by skarabeq):

 {{{#!php
 <?php
 $next_run = strtotime('2017-11-22 10:00');
 wp_clear_scheduled_hook('cron_action');
 wp_schedule_single_event($next_run, 'single_action');
 }}}

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


More information about the wp-trac mailing list