ActionScheduler_ActionFactory::recurring( string $hook, array $args = array(), int $first = null, int $interval = null, string $group = '' )
Create the first instance of an action recurring on a given interval.
Description Description
Parameters Parameters
- $hook
-
(Required) The hook to trigger when this action runs
- $args
-
(Optional) Args to pass when the hook is triggered
Default value: array()
- $first
-
(Optional) Unix timestamp for the first run
Default value: null
- $interval
-
(Optional) Seconds between runs
Default value: null
- $group
-
(Optional) A group to put the action in
Default value: ''
Return Return
(int) The ID of the stored action
Source Source
File: packages/action-scheduler/classes/ActionScheduler_ActionFactory.php