bookmark_bordergform_akismet_enabled

Description

This filter allows default Akismet integration to be disabled globally or per form.

Usage

add_filter( 'gform_akismet_enabled', 'your_function_name' );

To limit the scope of your function to a specific form, append the form id to the end of the hook name. (format: gform_akismet_enabled_FORMID)

add_filter( 'gform_akismet_enabled_6', 'your_function_name' );

Parameters

  • $is_enabled bool

    Defaults to true; return false to disable Akismet.

Examples

This example will globally disable Akismet integration with Gravity Forms:

add_filter( 'gform_akismet_enabled', '__return_false' );

Placement

This code should be placed in the functions.php file of your active theme.

Source Code

This filter is located in GFCommon::akismet_enabled() in common.php