Skip to main content

Filter: gforms_order_trial_discount_item_name

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. $form['id']

Example hook names:

  • gforms_order_trial_discount_item_name (base hook)
  • gforms_order_trial_discount_item_name_1 (with first modifier value)

Filter the name that appears in the order summary of the custom trial item.

Parameters

NameTypeDescription
$trial_item_namestringThe trial item name.
$formarrayThe Form object to filter through
$feedarrayThe Form object to filter through
$entryarrayThe entry object to filter through

Since

  • 2.6

Source

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