Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #42660, comment 21


Ignore:
Timestamp:
02/02/2018 03:24:06 PM (7 years ago)
Author:
mariovalney
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #42660, comment 21

    v1 v2  
    77If you want a event run just really once (and never again) the best way is to run `wp_schedule_single_event` in a action will run just once (like activating a plugin). If it's not possible, another solution would be add a entry in database (before it run to avoid parallel events and after it run to say "it's done: never schedule this again").
    88
    9 P.S: [https://www.useloom.com/share/6e9f4b410a394eb4ab889bce7e9a6c0b A video with a test you can do to check it's not a Core bug.]
     9P.S: [https://www.useloom.com/share/6e9f4b410a394eb4ab889bce7e9a6c0b A video] with a test you can do to check it's not a Core bug.