This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Enter Your Custom Functions Here */ | |
// Add custom validation for CF7 form fields | |
function is_company_email($email){ // Check against list of common public email providers & return true if the email provided *doesn't* match one of them | |
if( | |
preg_match('/@gmail./i', $email) || | |
preg_match('/@hotmail./i', $email) || | |
preg_match('/@live./i', $email) || | |
preg_match('/@msn./i', $email) || | |
preg_match('/@aol./i', $email) || |