Skip to main content

Action: gform_{$slug}_error

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. $form['id']

Example hook names:

  • gform_\{$slug\}_error (base hook)
  • gform_{$slug}_error_1 (with first modifier value)

Process any error actions.

Parameters

NameTypeDescription
$feedarrayThe feed which was being processed when the error occurred.
$entryarrayThe entry which was being processed when the error occurred.
$feedarrayThe form which was being processed when the error occurred.
$error_messagestringThe error message.

Since

Source

Defined in includes/addon/class-gf-feed-addon.php at line 2620