Skip to main content

Filter: gform_field_content

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. $form['id']
  2. $field->id

Example hook names:

  • gform_field_content (base hook)
  • gform_field_content_1 (with first modifier value)
  • gform_field_content_1_2 (with all modifier values)

Filters the field content.

Parameters

NameTypeDescription
$contentstringThe field content.
$fieldarrayThe Field Object.
$valuestringThe field value.
$leadint['id'] The entry ID.
$formint['id'] The form ID.

Since

  • 2.1.2.14: Added form and field ID modifiers.

Source

  • Defined in entry_detail.php at line 859
  • Defined in entry_detail.php at line 1143