Warning: This function has been deprecated.
wc_schedule_recurring_action( 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 job ID
Source Source
File: packages/action-scheduler/deprecated/functions.php
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |