Skip to main content

Filter: gform_personal_data_identification_fields

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. $form['id']

Example hook names:

  • gform_personal_data_identification_fields (base hook)
  • gform_personal_data_identification_fields_1 (with first modifier value)

Allows the list of personal data identification field choices to be modified. Fields values will be treated as user IDs.

For example, add the created_by field by returning: $identification_field_choices['created_by'] = 'Created By';

Parameters

NameTypeDescription
$identification_field_choicesarrayAn associative array with the field id as the key and the value as the label.
$formarrayThe current form.

Since

Source

Defined in includes/class-personal-data.php at line 235