//// Validate if Email field is spam add_action( 'elementor_pro/forms/validation/email', function( $field, $record, $ajax_handler ) { // Looking if email found in spam array, you can add to the array $spamemails = array("ericjonesonline@outlook.com", "eric@talkwithwebvisitor.com"); if ( in_array( $field['value'] , $spamemails) ) { $ajax_handler->add_error( $field['id'], 'אנחנו לא אוהבים ספאם, נסו מייל אחר' ); } }, 10, 3 );
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter