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: ''


Top ↑

Return Return

(int) The ID of the stored action


Top ↑

Source Source

File: packages/action-scheduler/classes/ActionScheduler_ActionFactory.php


			


Top ↑

User Contributed Notes User Contributed Notes

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