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.


String. The action ID


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

WC_Queue_Interface::schedule_single() code WC 9.0.1

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