Filter: gform_enable_legacy_markup
Dynamic Hook Name
This hook supports dynamic naming with the following modifiers:
$form_id
Example hook names:
gform_enable_legacy_markup(base hook)gform_enable_legacy_markup_1(with first modifier value)
Enable or disable legacy markup for a form.
Override legacy markup setting for one or all forms.
Parameters
| Name | Type | Description |
|---|---|---|
| $is_enabled | bool | Indicates if legacy markup is enabled for the current form. Default is false for forms created with Gravity Forms 2.5 and greater. |
| $form | array | The form object. |
Since
Source
Defined in common.php at line 7504