WC_Action_Queue::schedule_single( int $timestamp, string $hook, array $args = array(), string $group = '' )

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


Description Description


Parameters Parameters

$timestamp

(Required) When the job will run.

$hook

(Required) The hook to trigger.

$args

(Optional) Arguments to pass when the hook triggers.

Default value: array()

$group

(Optional) The group to assign this job to.

Default value: ''


Top ↑

Return Return

(string) The action ID.


Top ↑

Source Source

File: includes/queue/class-wc-action-queue.php

	public function schedule_single( $timestamp, $hook, $args = array(), $group = '' ) {
		return as_schedule_single_action( $timestamp, $hook, $args, $group );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.