WC_Queue_Interface::add()
Enqueue an action to run one time, as soon as possible
Method of the class: WC_Queue_Interface{}
No Hooks.
Return
String
. The action ID
Usage
$WC_Queue_Interface = new WC_Queue_Interface(); $WC_Queue_Interface->add( $hook, $args, $group );
- $hook(string) (required)
- The hook to trigger.
- $args(array)
- Arguments to pass when the hook triggers.
Default: array() - $group(string)
- The group to assign this job to.
Default: ''
WC_Queue_Interface::add() WC Queue Interface::add code WC 9.5.1
public function add( $hook, $args = array(), $group = '' );