ActionScheduler_ActionFactory::recurring()
Create the first instance of an action recurring on a given interval.
Method of the class: ActionScheduler_ActionFactory{}
No Hooks.
Return
Int
. The ID of the stored action.
Usage
$ActionScheduler_ActionFactory = new ActionScheduler_ActionFactory(); $ActionScheduler_ActionFactory->recurring( $hook, $args, $first, $interval, $group );
- $hook(string) (required)
- The hook to trigger when this action runs.
- $args(array)
- Args to pass when the hook is triggered.
Default: array() - $first(int)
- Unix timestamp for the first run.
Default: null - $interval(int)
- Seconds between runs.
Default: null - $group(string)
- A group to put the action in.
Default: ''
ActionScheduler_ActionFactory::recurring() ActionScheduler ActionFactory::recurring code WC 9.3.1
public function recurring( $hook, $args = array(), $first = null, $interval = null, $group = '' ) { return $this->recurring_unique( $hook, $args, $first, $interval, $group, false ); }