Filter: gform_source_id_pre_save_entry
Dynamic Hook Name
This hook supports dynamic naming with the following modifiers:
(int) rgar($form, 'id')
Example hook names:
gform_source_id_pre_save_entry(base hook)gform_source_id_pre_save_entry_1(with first modifier value)
Allows the value to be saved to the entry source_id property to be overridden.
Parameters
| Name | Type | Description |
|---|---|---|
| $id | int|null | The ID of the post or page where the form submission originated. |
| $form | array | The form the entry is being created for. |
Since
Source
Defined in forms_model.php at line 3363