WC_Action_Queue::schedule_single() public WC 1.0
Schedule an action to run once at some time in the future
{} Это метод класса: WC_Action_Queue{}
Хуков нет.
Возвращает
Строку. The action ID.
Использование
$WC_Action_Queue = new WC_Action_Queue(); $WC_Action_Queue->schedule_single( $timestamp, $hook, $args, $group );
- $timestamp(число) (обязательный)
- When the job will run.
- $hook(строка) (обязательный)
- The hook to trigger.
- $args(массив)
- Arguments to pass when the hook triggers.
- $group(строка)
- The group to assign this job to.
Код WC_Action_Queue::schedule_single() WC Action Queue::schedule single WC 5.0.0
public function schedule_single( $timestamp, $hook, $args = array(), $group = '' ) {
return as_schedule_single_action( $timestamp, $hook, $args, $group );
}