Reply To: Creating Email Domain Filter

Home Forums Quform WordPress Creating Email Domain Filter Reply To: Creating Email Domain Filter


Hi there, I tried create new version hook, but it seem don’t work?

function block_free_email_addresses($valid, $value, $element)
$pattern = ‘/@(.+\.)?(gmail|googlemail|hotmail|live|msn|outlook|yahoo|ymail|aol)\./i’;

if (preg_match($pattern, $value)) {
$element->addError(‘Please provide your business email.’);
$valid = false;

return $valid;

add_filter(‘quform_element_valid_1_11’, ‘block_free_email_addresses’, 10, 3);

  • This reply was modified 1 year, 4 months ago by hendratok. Reason: fix code mess
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy