ActionScheduler_ActionFactory::recurring()publicWC 1.0

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() code WC 8.7.0

public function recurring( $hook, $args = array(), $first = null, $interval = null, $group = '' ) {
	return $this->recurring_unique( $hook, $args, $first, $interval, $group, false );
}