|
13 | 13 | * |
14 | 14 | * # Run all cron events due right now |
15 | 15 | * $ 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. |
16 | 18 | * Success: Executed a total of 2 cron events. |
17 | 19 | * |
18 | 20 | * # Delete all scheduled cron events for the given hook |
19 | 21 | * $ 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. |
21 | 23 | * |
22 | 24 | * # List scheduled cron events in JSON |
23 | 25 | * $ wp cron event list --fields=hook,next_run --format=json |
@@ -218,6 +220,8 @@ public function schedule( $args, $assoc_args ) { |
218 | 220 | * |
219 | 221 | * # Run all cron events due right now |
220 | 222 | * $ 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. |
221 | 225 | * Success: Executed a total of 2 cron events. |
222 | 226 | */ |
223 | 227 | public function run( $args, $assoc_args ) { |
@@ -253,7 +257,7 @@ public function run( $args, $assoc_args ) { |
253 | 257 | * |
254 | 258 | * # Unschedule a cron event on given hook. |
255 | 259 | * $ wp cron event unschedule cron_test |
256 | | - * Success: Unscheduled 2 events with hook 'cron_test'. |
| 260 | + * Success: Unscheduled 2 events for hook 'cron_test'. |
257 | 261 | */ |
258 | 262 | public function unschedule( $args, $assoc_args ) { |
259 | 263 |
|
@@ -308,7 +312,7 @@ public function unschedule( $args, $assoc_args ) { |
308 | 312 | * |
309 | 313 | * # Delete all scheduled cron events for the given hook |
310 | 314 | * $ 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. |
312 | 316 | */ |
313 | 317 | public function delete( $args, $assoc_args ) { |
314 | 318 | $events = self::get_selected_cron_events( $args, $assoc_args ); |
|
0 commit comments