ActionScheduler_ActionFactory::single( string $hook, array $args = array(), int $when = null, string $group = '' )
Description Description
Parameters Parameters
- $hook
-
(Required) The hook to trigger when this action runs
- $args
-
(Optional) Args to pass when the hook is triggered
Default value: array()
- $when
-
(Optional) Unix timestamp when the action will run
Default value: null
- $group
-
(Optional) A group to put the action in
Default value: ''
Return Return
(int) The ID of the stored action
Source Source
File: packages/action-scheduler/classes/ActionScheduler_ActionFactory.php