Elementor Form Block Eric Jones Email Spam


Fri May 07 2021 18:14:11 GMT+0000 (Coordinated Universal Time)

Saved by @Alz #php

//// 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 );

Block spam email for specific emails like eric jones on elementor forms