Skip to content

Commit 29a5f9a

Browse files
authored
Merge pull request #102 from ernilambar/fix-cron-command-examples
2 parents 46e49e2 + 382ed74 commit 29a5f9a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/Cron_Event_Command.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@
1313
*
1414
* # Run all cron events due right now
1515
* $ wp cron event run --due-now
16+
* Executed the cron event 'cron_test_1' in 0.01s.
17+
* Executed the cron event 'cron_test_2' in 0.006s.
1618
* Success: Executed a total of 2 cron events.
1719
*
1820
* # Delete all scheduled cron events for the given hook
1921
* $ wp cron event delete cron_test
20-
* Success: Deleted 2 instances of the cron event 'cron_test'.
22+
* Success: Deleted a total of 2 cron events.
2123
*
2224
* # List scheduled cron events in JSON
2325
* $ wp cron event list --fields=hook,next_run --format=json
@@ -218,6 +220,8 @@ public function schedule( $args, $assoc_args ) {
218220
*
219221
* # Run all cron events due right now
220222
* $ wp cron event run --due-now
223+
* Executed the cron event 'cron_test_1' in 0.01s.
224+
* Executed the cron event 'cron_test_2' in 0.006s.
221225
* Success: Executed a total of 2 cron events.
222226
*/
223227
public function run( $args, $assoc_args ) {
@@ -253,7 +257,7 @@ public function run( $args, $assoc_args ) {
253257
*
254258
* # Unschedule a cron event on given hook.
255259
* $ wp cron event unschedule cron_test
256-
* Success: Unscheduled 2 events with hook 'cron_test'.
260+
* Success: Unscheduled 2 events for hook 'cron_test'.
257261
*/
258262
public function unschedule( $args, $assoc_args ) {
259263

@@ -308,7 +312,7 @@ public function unschedule( $args, $assoc_args ) {
308312
*
309313
* # Delete all scheduled cron events for the given hook
310314
* $ wp cron event delete cron_test
311-
* Success: Deleted 2 instances of the cron event 'cron_test'.
315+
* Success: Deleted a total of 2 cron events.
312316
*/
313317
public function delete( $args, $assoc_args ) {
314318
$events = self::get_selected_cron_events( $args, $assoc_args );

0 commit comments

Comments
 (0)