as_schedule_recurring_action( int $timestamp, int $interval_in_seconds, string $hook, array $args = array(), string $group = '' )
Schedule a recurring action
Description Description
Parameters Parameters
- $timestamp
-
(Required) When the first instance of the job will run.
- $interval_in_seconds
-
(Required) How long to wait between runs.
- $hook
-
(Required) The hook to trigger.
- $args
-
(Optional) Arguments to pass when the hook triggers.
Default value: array()
- $group
-
(Optional) The group to assign this job to.
Default value: ''
Return Return
(int) The action ID.
Source Source
File: packages/action-scheduler/functions.php