Skip to content

Instantly share code, notes, and snippets.

@verticalgrain
verticalgrain / gf-email-validate.php
Created May 28, 2015 18:19
Email validation in Gravity Forms - validate an email address entered in a regular text input
<?
/**
* Hooks for validating an email address in Gravity Forms
* When using a plain text input to collect an email, this will validate that the email address entered is a proper email address
* Useful for situations in which the existing gravity forms email field can't be used
*
* Change line 28 and line 37 to adapt this to your form
*
* @package d7