Wp cron event run (WP-CLI)

Uit De Vliegende Brigade
Naar navigatie springen Naar zoeken springen
$ wp help cron event run

NAME

  wp cron event run

DESCRIPTION

  Runs the next scheduled cron event for the given hook.

SYNOPSIS

  wp cron event run [<hook>...] [--due-now] [--all]

OPTIONS

  [<hook>...]
    One or more hooks to run.

  [--due-now]
    Run all hooks due right now.

  [--all]
    Run all hooks.

EXAMPLES

    # Run all cron events due right now
    $ wp cron event run --due-now
    Success: Executed a total of 2 cron events.