Skip to content

Gravity Forms Spam Notifications

Chris Eggleston 1 min read

Problem

When using many of the spam prevention methods available for Gravity Forms (i.e. honeypot, Akismet, Zero Spam, etc.), entries are either ignored or saved to the spam folder.

The problem arises when a valid submission is marked as spam. Out of the box, when an entry is marked as spam, Gravity Forms displays the default confirmation, and no notifications are sent.

Solution

Thanks to the wizards over at Gravity Wiz, you can use a simple code snippet to send notifications when an entry is marked as spam.

This will only work when the entry is marked as spam as part of the initial form submission. Meaning, that if you mark an entry as spam, this code will not trigger the spam notification.

Works With:

These are the spam prevention methods we’ve tested and know this code works with.

  • Akismet
  • Zero Spam
  • Honeypot (when configured to save entry*)
  • reCAPTCHA

*This will only work for the honeypot setting if you have selected the option to Create an entry and mark it as spam.

The Code

You can grab the code on the Gravity Wiz website, there is also a tutorial on how to use the code. View The Code & Tutorial

The code can be placed in your themes functions.php file, but we always recommend using a functionality plugin like WPCodeBox or WPCode.

The Notification

The code snippet adds a new Notification Event to the notification configuration settings.

Create a new notification and select the Entry marked as spam event.

Need More Help?

If you need help using the snippet, you can reach out to the wizards at Gravity Wiz here.

If you still need help, use the chat or leave a comment below and we’ll get back to you.

Comments

Ask a question or leave a comment

Your email is never shown. For help with a specific form, share what you expected and what happened instead.