WC_Queue_Interface::schedule_recurring()
Schedule a recurring action
Method of the class: WC_Queue_Interface{}
No Hooks.
Return
String
. The action ID
Usage
$WC_Queue_Interface = new WC_Queue_Interface(); $WC_Queue_Interface->schedule_recurring( $timestamp, $interval_in_seconds, $hook, $args, $group );
- $timestamp(int) (required)
- When the first instance of the job will run.
- $interval_in_seconds(int) (required)
- How long to wait between runs.
- $hook(string) (required)
- The hook to trigger.
- $args(array)
- Arguments to pass when the hook triggers.
Default: array() - $group(string)
- The group to assign this job to.
Default: ''
WC_Queue_Interface::schedule_recurring() WC Queue Interface::schedule recurring code WC 9.6.1
public function schedule_recurring( $timestamp, $interval_in_seconds, $hook, $args = array(), $group = '' );