• Skip to main content

WP Republic!

High Profile WordPress Security Services by WP Republic!

  • Blog
  • Malware Removal
  • WordPress Security Plans
  • FAQ
  • About us
    • Privacy Policy
    • Terms of Service

Sep 07 2018

How to stop Akismet blocking Gravity Forms entries

It seems that Akismet sometimes flags Gravity Forms entries as spam and as a result its blocking them. This conflict can make your WordPress Gravity Forms miss a lot of entries and inquiries because you never receive the email notifications about them unless you go and manually check the Gravity Form entries from your WordPress Dashboard.

In this case, there is not a lot you can do to bypass the conflict; you can disable Akismet or you can apply the following Gravity Forms filter and bypass Akismet to all or some of your Gravity Forms.

 

Fixing Akismet blocking Gravity Forms conflict

Step 1: Backup your active theme files

Create a backup of your active theme functions.php file

Step 2: Add a code snippet to block Akismet from Gravity Forms

Open your active theme functions.php file with your favourite editor and add the following code if you want to globally disable Akismet from your Gravity Forms:

add_filter( 'gform_akismet_enabled', '__return_false' );

If you want to disable Akismet for a specific form then write down the Gravity Forms id(for example: 1) and use it in the following code snippet:

add_filter( 'gform_akismet_enabled_1', '__return_false' );

Step 3: Save and test

Save your functions.php and test your form by reloading on of your Gravity Form pages and by submitting a test entry. Then check if you received the email notification which is triggered by Gravity Form once an entry has been recorded.

Extra Tip

Editing your active theme files is not safe for beginners, that’s why you always need to create a theme backup before trying any such hack. If you don’t want to get your hands dirty then I strongly suggest using a plugin which will do the job for you.
For example, you can install and activate My Custom Functions WordPress plugin and add the code snippets I wrote about above.

Written by WP Republic! · Categorized: Blog · Tagged: akismet, conflict, gravity forms

SUBSCRIBE TO OUR GOODIES LIST!

Reader Interactions

Comments

  1. elle gamboa - webmaster for cloudbaseengineering says

    September 16, 2018 at 11:35 pm

    I need your help for cleaning malware on a site

    Reply
    • Bit of WP says

      September 16, 2018 at 11:39 pm

      We’ve already sent our reply through our FB page.

      Reply

Leave a Reply to Anonymous Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

© 2021 · WordPress Security Services · WP Republic!
This website is not affiliated with or sponsored by Automattic or the WordPress Open Source project