ActionScheduler_ActionFactory::single()publicWC 1.0

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 to pass when the hook is triggered.
По умолчанию: array()
Unix timestamp when the action will run.
По умолчанию: null
A group to put the action in.
По умолчанию: ''

Код ActionScheduler_ActionFactory::single() WC 8.9.0

public function single( $hook, $args = array(), $when = null, $group = '' ) {
	return $this->single_unique( $hook, $args, $when, $group, false );