WC_Action_Queue::schedule_single()
Schedule an action to run once at some time in the future
Method of the class: WC_Action_Queue{}
No Hooks.
Return
String
. The action ID.
Usage
$WC_Action_Queue = new WC_Action_Queue(); $WC_Action_Queue->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_Action_Queue::schedule_single() WC Action Queue::schedule single code WC 9.7.1
public function schedule_single( $timestamp, $hook, $args = array(), $group = '' ) { return as_schedule_single_action( $timestamp, $hook, $args, $group ); }