Filter: gform_personal_data_identification_fields
Dynamic Hook Name
This hook supports dynamic naming with the following modifiers:
$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
| Name | Type | Description |
|---|---|---|
| $identification_field_choices | array | An associative array with the field id as the key and the value as the label. |
| $form | array | The current form. |
Since
Source
Defined in includes/class-personal-data.php at line 235