Skip to main content

Filter: gform_source_id_pre_save_entry

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

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

NameTypeDescription
$idint|nullThe ID of the post or page where the form submission originated.
$formarrayThe form the entry is being created for.

Since

Source

Defined in forms_model.php at line 3363