Skip to content

Commit f0d493f

Browse files
authored
Merge pull request #76 from wp-cli/regenerate-readme
Regenerate README file
2 parents d7bcd06 + 754a2b9 commit f0d493f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ wp-cli/cron-command
33

44
Tests, runs, and deletes WP-Cron events; manages WP-Cron schedules.
55

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)
77

88
Quick links: [Using](#using) | [Installing](#installing) | [Contributing](#contributing) | [Support](#support)
99

@@ -69,7 +69,7 @@ wp cron event
6969
$ wp cron event run --due-now
7070
Success: Executed a total of 2 cron events.
7171

72-
# Delete the next scheduled cron event
72+
# Delete all scheduled cron events for the given hook
7373
$ wp cron event delete cron_test
7474
Success: Deleted 2 instances of the cron event 'cron_test'.
7575

@@ -83,7 +83,7 @@ wp cron event
8383

8484
### wp cron event delete
8585

86-
Deletes the next scheduled cron event for the given hook.
86+
Deletes all scheduled cron events for the given hook.
8787

8888
~~~
8989
wp cron event delete <hook>
@@ -96,7 +96,7 @@ wp cron event delete <hook>
9696

9797
**EXAMPLES**
9898

99-
# Delete the next scheduled cron event
99+
# Delete all scheduled cron events for the given hook
100100
$ wp cron event delete cron_test
101101
Success: Deleted 2 instances of the cron event 'cron_test'.
102102

@@ -215,7 +215,7 @@ wp cron event schedule <hook> [<next-run>] [<recurrence>] [--<field>=<value>]
215215
How often the event should recur. See `wp cron schedule list` for available schedule names. Defaults to no recurrence.
216216

217217
[--<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.
219219

220220
**EXAMPLES**
221221

@@ -227,8 +227,8 @@ wp cron event schedule <hook> [<next-run>] [<recurrence>] [--<field>=<value>]
227227
$ wp cron event schedule cron_test now hourly
228228
Success: Scheduled event with hook 'cron_test' for 2016-05-31 10:20:32 GMT.
229229

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
232232
Success: Scheduled event with hook 'cron_test' for 2016-05-31 11:21:35 GMT.
233233

234234

0 commit comments

Comments
 (0)