WordPress at Your Fingertips
function is not described

as_schedule_single_action() WC 1.0

Schedule an action to run one time

No Hooks.


Int. The action ID.


as_schedule_single_action( $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: ''

Code of as_schedule_single_action() WC 6.1.1

function as_schedule_single_action( $timestamp, $hook, $args = array(), $group = '' ) {
	if ( ! ActionScheduler::is_initialized( __FUNCTION__ ) ) {
		return 0;
	return ActionScheduler::factory()->single( $hook, $args, $timestamp, $group );