Skip to content

Commit

Permalink
Merge pull request #103 from wp-cli/regenerate-readme
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy authored Feb 15, 2024
2 parents 29a5f9a + 48a31ca commit 2108295
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,13 @@ wp cron event

# Run all cron events due right now
$ wp cron event run --due-now
Executed the cron event 'cron_test_1' in 0.01s.
Executed the cron event 'cron_test_2' in 0.006s.
Success: Executed a total of 2 cron events.

# Delete all scheduled cron events for the given hook
$ wp cron event delete cron_test
Success: Deleted 2 instances of the cron event 'cron_test'.
Success: Deleted a total of 2 cron events.

# List scheduled cron events in JSON
$ wp cron event list --fields=hook,next_run --format=json
Expand Down Expand Up @@ -107,7 +109,7 @@ wp cron event delete [<hook>...] [--due-now] [--exclude=<hooks>] [--all]

# Delete all scheduled cron events for the given hook
$ wp cron event delete cron_test
Success: Deleted 2 instances of the cron event 'cron_test'.
Success: Deleted a total of 2 cron events.



Expand Down Expand Up @@ -203,6 +205,8 @@ wp cron event run [<hook>...] [--due-now] [--exclude=<hooks>] [--all]

# Run all cron events due right now
$ wp cron event run --due-now
Executed the cron event 'cron_test_1' in 0.01s.
Executed the cron event 'cron_test_2' in 0.006s.
Success: Executed a total of 2 cron events.


Expand Down Expand Up @@ -342,7 +346,7 @@ wp cron event unschedule <hook>

# Unschedule a cron event on given hook.
$ wp cron event unschedule cron_test
Success: Unscheduled 2 events with hook 'cron_test'.
Success: Unscheduled 2 events for hook 'cron_test'.

## Installing

This comment has been minimized.

Copy link
@norbertosus

norbertosus Mar 2, 2024

define( 'DISABLE_WP_CRON', true );


Expand Down

0 comments on commit 2108295

Please sign in to comment.