cron-command icon indicating copy to clipboard operation
cron-command copied to clipboard

Suggestion, allow deleting specific cron events (using args) with wp cron delete

Open tylercollier opened this issue 2 years ago • 6 comments

Feature Request

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.

tylercollier avatar Dec 20 '21 17:12 tylercollier