Skip to main content

Filter: gform_currency_pre_save_entry

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. $form['id']

Example hook names:

  • gform_currency_pre_save_entry (base hook)
  • gform_currency_pre_save_entry_1 (with first modifier value)

Allow the currency code to be overridden.

Parameters

NameTypeDescription
$currencystringThe three character ISO currency code to be stored in the entry. Default is value returned by GFCommon::get_currency()
$formarrayThe form currently being processed.

Source

  • Defined in includes/legacy/forms_model_legacy.php at line 567
  • Defined in forms_model.php at line 3110
  • Defined in forms_model.php at line 3520