Wp cron event schedule (WP-CLI)

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

NAME

  wp cron event schedule

DESCRIPTION

  Schedules a new cron event.

SYNOPSIS

  wp cron event schedule <hook> [<next-run>] [<recurrence>] [--<field>=<value>]

OPTIONS

  <hook>
    The hook name.

  [<next-run>]
    A Unix timestamp or an English textual datetime description compatible with `strtotime()`. Defaults to now.

  [<recurrence>]
    How often the event should recur. See `wp cron schedule list` for available schedule names. Defaults to no
    recurrence.

  [--<field>=<value>]
    Arguments to pass to the hook for the event. <field> should be a numeric key, not a string.