DATE_FORMAT
DATE_FORMAT = 'Y-m-d H:i:s O'
WP-CLI command: action-scheduler action generate
$args : string[]
Keyed arguments.
$assoc_args : array<string,string>
Positional arguments.
generate(int $schedule_start, int $interval, int $count, string $hook, array $args = array(), string $group = '') : int[]
Schedule multiple single actions.
int | $schedule_start | Starting timestamp of first action. |
int | $interval | How long to wait between runs. |
int | $count | Limit number of actions to schedule. |
string | $hook | The hook to trigger. |
array | $args | Arguments to pass when the hook triggers. |
string | $group | The group to assign this job to. |
IDs of actions added.