as_schedule_single_action( int $timestamp, string $hook, array $args = array(), string $group = '' )
Schedule an action to run one time
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: ''
Return Return
(int) The action ID.
Source Source
File: packages/action-scheduler/functions.php