Skip to main content

Filter: gform_akismet_fields

Dynamic Hook Name

This hook supports dynamic naming with the following modifiers:

  1. $form['id']

Example hook names:

  • gform_akismet_fields (base hook)
  • gform_akismet_fields_1 (with first modifier value)

Allows the data to be sent to Akismet to be overridden.

Parameters

NameTypeDescription
$akismet_fieldsarrayThe data to be sent to Akismet.
$formarrayThe form which created the entry.
$entryarrayThe entry being processed.
$actionstringThe action triggering the Akismet request: submit, spam, or ham.

Since

  • unknown: unknown
  • 2.4.19: Added the $action param.

Source

Defined in common.php at line 4621