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: ''


Top ↑

Return Return

(string) The job ID


Top ↑

Source Source

File: packages/action-scheduler/deprecated/functions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.