Filter: gform_field_choices
Dynamic Hook Name
This hook supports dynamic naming with the following modifiers:
$this->field->formId
Example hook names:
gform_field_choices(base hook)gform_field_choices_1(with first modifier value)
Allows the HTML for multiple choices to be overridden.
Parameters
| Name | Type | Description |
|---|---|---|
| $choices | string | The choices HTML. |
| $field | object | The current field object. |
Since
- unknown: unknown
Source
- Defined in
includes/fields/field-decorator-choice/class-gf-field-decorator-choice-radio-markup.phpat line 100 - Defined in
includes/fields/field-decorator-choice/class-gf-field-decorator-choice-checkbox-markup.phpat line 157 - Defined in
includes/fields/class-gf-field-radio.phpat line 266 - Defined in
includes/fields/class-gf-field-checkbox.phpat line 1122