Skip to main content

Filter: gform_enable_legacy_markup

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. $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

NameTypeDescription
$is_enabledboolIndicates if legacy markup is enabled for the current form. Default is false for forms created with Gravity Forms 2.5 and greater.
$formarrayThe form object.

Since

Source

Defined in common.php at line 7504