WC_Queue_Interface::schedule_single()publicWC 1.0

Schedule an action to run once at some time in the future

Method of the class: WC_Queue_Interface{}

No Hooks.

Return

String. The action ID

Usage

$WC_Queue_Interface = new WC_Queue_Interface();
$WC_Queue_Interface->schedule_single( $timestamp, $hook, $args, $group );
$timestamp(int) (required)
When the job will run.
$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: ''

WC_Queue_Interface::schedule_single() code WC 8.7.0

public function schedule_single( $timestamp, $hook, $args = array(), $group = '' );