Changes between Initial Version and Version 1 of Ticket #42660, comment 21
- Timestamp:
- 02/02/2018 03:23:25 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #42660, comment 21
initial v1 7 7 If 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"). 8 8 9 P.S: [https://www.useloom.com/share/6e9f4b410a394eb4ab889bce7e9a6c0b A video with a test you can do .]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.]