Skip to main content

Filter: gform_order_additional_items

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. $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

NameTypeDescription
$additional_itemsarrayAn associative array that represents the ID of the item as key and the data of the item as a value array.
$formarrayThe Form object to filter through
$feedarrayThe Form object to filter through
$entryarrayThe entry object to filter through

Since

Source

Defined in includes/orders/factories/class-gf-order-factory.php at line 261