wc_schedule_recurring_action()WC 1.0

Deprecated from version 2.1.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Schedule a recurring action

No Hooks.


String. The job ID


wc_schedule_recurring_action( $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
Arguments to pass when the hook triggers
Default: array()
The group to assign this job to
Default: ''


Deprecated since 2.1.0

wc_schedule_recurring_action() code WC 7.3.0

function wc_schedule_recurring_action( $timestamp, $interval_in_seconds, $hook, $args = array(), $group = '' ) {
	_deprecated_function( __FUNCTION__, '2.1.0', 'as_schedule_recurring_action()' );
	return as_schedule_recurring_action( $timestamp, $interval_in_seconds, $hook, $args, $group );