Filter: gform_akismet_fields
Dynamic Hook Name
This hook supports dynamic naming with the following modifiers:
$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
| Name | Type | Description |
|---|---|---|
| $akismet_fields | array | The data to be sent to Akismet. |
| $form | array | The form which created the entry. |
| $entry | array | The entry being processed. |
| $action | string | The 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