cron-command
cron-command copied to clipboard
Suggestion, allow deleting specific cron events (using args) with wp cron delete
Feature Request
- [x] Yes, I reviewed the contribution guidelines.
Describe your use case and the problem you are facing
I'd like to be able to delete specific cron events, including args, not just all events for a given hook name.
Let's say I have two cron events:
Hook name | Args |
---|---|
process_stuff_for_user | [123] |
process_stuff_for_user | [456] |
Right now, if I do wp cron event delete process_stuff_for_user
, it deletes all events with that hook name.
Describe the solution you'd like
Allow me to delete a specific one with e.g.
$ wp cron event delete process_stuff_for_user [123]
I suppose the args would need to be supplied as a JSON string.