WC_Action_Queue::schedule_recurring( 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
(string) The action ID.
Source Source
File: includes/queue/class-wc-action-queue.php
public function schedule_recurring( $timestamp, $interval_in_seconds, $hook, $args = array(), $group = '' ) { return as_schedule_recurring_action( $timestamp, $interval_in_seconds, $hook, $args, $group ); }