Skip to content

Commit 5bd4379

Browse files
Regenerate README file (#132)
Co-authored-by: Alain Schlesser <alain.schlesser@gmail.com>
1 parent 15872ff commit 5bd4379

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ wp cron event
8888
Deletes all scheduled cron events for the given hook.
8989

9090
~~~
91-
wp cron event delete [<hook>...] [--due-now] [--exclude=<hooks>] [--all]
91+
wp cron event delete [<hook>...] [--due-now] [--exclude=<hooks>] [--all] [--match-args=<args>]
9292
~~~
9393

9494
**OPTIONS**
@@ -105,12 +105,19 @@ wp cron event delete [<hook>...] [--due-now] [--exclude=<hooks>] [--all]
105105
[--all]
106106
Delete all hooks.
107107

108+
[--match-args=<args>]
109+
Only delete events whose arguments match the given JSON-encoded array or scalar value. Argument types must match exactly (for example, `["123"]` vs `[123]`). Requires exactly one hook name.
110+
108111
**EXAMPLES**
109112

110113
# Delete all scheduled cron events for the given hook
111114
$ wp cron event delete cron_test
112115
Success: Deleted a total of 2 cron events.
113116

117+
# Delete a specific cron event by hook and arguments
118+
$ wp cron event delete cron_test --match-args='["123"]'
119+
Success: Deleted a total of 1 cron event.
120+
114121

115122

116123
### wp cron event list

0 commit comments

Comments
 (0)