ActionScheduler_ActionFactory::single()
Create single action.
Метод класса: ActionScheduler_ActionFactory{}
Хуков нет.
Возвращает
int
. The ID of the stored action.
Использование
$ActionScheduler_ActionFactory = new ActionScheduler_ActionFactory(); $ActionScheduler_ActionFactory->single( $hook, $args, $when, $group );
- $hook(строка) (обязательный)
- The hook to trigger when this action runs.
- $args(массив)
- Args to pass when the hook is triggered.
По умолчанию: array() - $when(int)
- Unix timestamp when the action will run.
По умолчанию: null - $group(строка)
- A group to put the action in.
По умолчанию: ''
Код ActionScheduler_ActionFactory::single() ActionScheduler ActionFactory::single WC 9.7.1
public function single( $hook, $args = array(), $when = null, $group = '' ) { return $this->single_unique( $hook, $args, $when, $group, false ); }