wp cron event schedule <hook> <next-run> <recurrence>
Schedules a new cron event
Arguments
Name | Description |
---|---|
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 |
Options
Name | Description |
---|---|
--field=value | Arguments to pass to the hook for the event. <field> should be a numeric key, not a string |