Filter: gform_order_additional_items
Dynamic Hook Name
This hook supports dynamic naming with the following modifiers:
$form['id']
Example hook names:
gform_order_additional_items(base hook)gform_order_additional_items_1(with first modifier value)
Allows adding additional items to the order before it is saved.
Parameters
| Name | Type | Description |
|---|---|---|
| $additional_items | array | An associative array that represents the ID of the item as key and the data of the item as a value array. |
| $form | array | The Form object to filter through |
| $feed | array | The Form object to filter through |
| $entry | array | The entry object to filter through |
Since
Source
Defined in includes/orders/factories/class-gf-order-factory.php at line 261