Filter: gform_field_choices
Dynamic Hook Name
This hook supports dynamic naming with the following modifiers:
$this->formId$this->id
Example hook names:
gform_field_choices(base hook)gform_field_choices_1(with first modifier value)gform_field_choices_1_2(with all modifier values)
Modify the checkbox items before they are added to the checkbox list.
Parameters
| Name | Type | Description |
|---|---|---|
| $choices | string | The string containing the choices to be filtered. |
| $field | object | The field currently being processed. |
Since
- Unknown: Unknown
Source
- Defined in
includes/fields/class-gf-field-checkbox.phpat line 1119 - Defined in
includes/fields/field-decorator-choice/class-gf-field-decorator-choice-radio-markup.phpat line 98 - Defined in
includes/fields/field-decorator-choice/class-gf-field-decorator-choice-checkbox-markup.phpat line 155 - Defined in
includes/fields/class-gf-field-radio.phpat line 266