Filter: gform_currency_pre_save_entry
Dynamic Hook Name
This hook supports dynamic naming with the following modifiers:
$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
| Name | Type | Description |
|---|---|---|
| $currency | string | The three character ISO currency code to be stored in the entry. Default is value returned by GFCommon::get_currency() |
| $form | array | The form currently being processed. |
Source
- Defined in
includes/legacy/forms_model_legacy.phpat line 567 - Defined in
forms_model.phpat line 3110 - Defined in
forms_model.phpat line 3520