WC_Queue_Interface::add
Enqueue an action to run one time, as soon as possible
Метод класса: WC_Queue_Interface{}
Хуков нет.
Возвращает
int. The action ID
Использование
$WC_Queue_Interface = new WC_Queue_Interface(); $WC_Queue_Interface->add( $hook, $args, $group );
- $hook(строка) (обязательный)
- The hook to trigger.
- $args(массив)
- Arguments to pass when the hook triggers.
По умолчанию:array() - $group(строка)
- The group to assign this job to.
По умолчанию:''
Код WC_Queue_Interface::add() WC Queue Interface::add WC 11.2.2
public function add( $hook, $args = array(), $group = '' );