@@ -3,7 +3,7 @@ wp-cli/cron-command
3
3
4
4
Tests, runs, and deletes WP-Cron events; manages WP-Cron schedules.
5
5
6
- [ ![ Build Status ] ( https://travis-ci.org /wp-cli/cron-command. svg?branch=master )] ( https://travis-ci.org /wp-cli/cron-command )
6
+ [ ![ Testing ] ( https://github.com /wp-cli/cron-command/actions/workflows/testing.yml/badge. svg )] ( https://github.com /wp-cli/cron-command/actions/workflows/testing.yml )
7
7
8
8
Quick links: [ Using] ( #using ) | [ Installing] ( #installing ) | [ Contributing] ( #contributing ) | [ Support] ( #support )
9
9
@@ -69,7 +69,7 @@ wp cron event
69
69
$ wp cron event run --due-now
70
70
Success: Executed a total of 2 cron events.
71
71
72
- # Delete the next scheduled cron event
72
+ # Delete all scheduled cron events for the given hook
73
73
$ wp cron event delete cron_test
74
74
Success: Deleted 2 instances of the cron event 'cron_test'.
75
75
@@ -83,7 +83,7 @@ wp cron event
83
83
84
84
### wp cron event delete
85
85
86
- Deletes the next scheduled cron event for the given hook.
86
+ Deletes all scheduled cron events for the given hook.
87
87
88
88
~~~
89
89
wp cron event delete <hook>
@@ -96,7 +96,7 @@ wp cron event delete <hook>
96
96
97
97
** EXAMPLES**
98
98
99
- # Delete the next scheduled cron event
99
+ # Delete all scheduled cron events for the given hook
100
100
$ wp cron event delete cron_test
101
101
Success: Deleted 2 instances of the cron event 'cron_test'.
102
102
@@ -215,7 +215,7 @@ wp cron event schedule <hook> [<next-run>] [<recurrence>] [--<field>=<value>]
215
215
How often the event should recur. See `wp cron schedule list` for available schedule names. Defaults to no recurrence.
216
216
217
217
[--<field>=<value>]
218
- Associative args for the event.
218
+ Arguments to pass to the hook for the event. <field> should be a numeric key, not a string .
219
219
220
220
** EXAMPLES**
221
221
@@ -227,8 +227,8 @@ wp cron event schedule <hook> [<next-run>] [<recurrence>] [--<field>=<value>]
227
227
$ wp cron event schedule cron_test now hourly
228
228
Success: Scheduled event with hook 'cron_test' for 2016-05-31 10:20:32 GMT.
229
229
230
- # Schedule new cron event and pass associative arguments
231
- $ wp cron event schedule cron_test '+1 hour' --foo=1 --bar=2
230
+ # Schedule new cron event and pass arguments
231
+ $ wp cron event schedule cron_test '+1 hour' --0=first-argument --1=second-argument
232
232
Success: Scheduled event with hook 'cron_test' for 2016-05-31 11:21:35 GMT.
233
233
234
234
0 commit comments