wc_schedule_recurring_action()WC 1.0

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

Schedule a recurring action.

No Hooks.

Returns

String. The job ID

Usage

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

Changelog

Deprecated since 2.1.0

wc_schedule_recurring_action() code WC 10.3.6

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 );
}