gpb_enable_blocklist_spam

  1. Description
  2. Usage
  3. Parameters
  4. Since

Description

Enable Blocklist Spam to send entries that contain blocklisted words to spam rather than returning a validation error.

Usage

Apply to all forms.

add_filter( 'gpb_enable_blocklist_spam', '__return_true' );

Apply to a specific form.

add_filter( 'gpb_enable_blocklist_spam_FORMID', '__return_true' );

Parameters

  • enable_blocklist_spam bool

    Whether Blocklist Spam should be enabled. Defaults to false. Return true to enable.

  • form_id int

    The ID of the current form being submitted.

Since

This filter is available since Gravity Forms Blocklist 1.3.3.