-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion, allow deleting specific cron events (using args) with wp cron delete #79
Comments
Github shows "1 task done" on this issue, although I don't see a list of tasks. May I ask if that means someone is working on something related to this? |
@tylercollier The |
Thanks. Any thoughts on the feature request? |
@tylercollier Yes, I think this could be useful. However, it might not be possible for some arguments to be provided via the CLI. For simple scalars, or even arrays through JSON, this would work, though. |
I hear ya. You're right. How about a serialized PHP value? Those are pretty awkward to create by hand, but still worth it. I'd probably just go to some website that generates serialized PHP from JSON. Or I'd keep some example value around to copy and paste and alter as appropriate. Or, allow a |
Any thoughts on my previous comment? I still find myself wishing I could remove a single cron job by args. Nobody else? :-D |
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:
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.
I suppose the args would need to be supplied as a JSON string.
The text was updated successfully, but these errors were encountered: