Contact Us

add_action( 'elementor_pro/forms/validation', function ( $record, $handler ) { // Check if the Form Record class is available (ensures Pro Elements is active) if ( ! class_exists( '\ElementorPro\Modules\Forms\Classes\Form_Record' ) || ! $record instanceof \ElementorPro\Modules\Forms\Classes\Form_Record ) { return; } // 1. Define the specific email address to block (use lowercase for case-insensitive matching) $blocked_email = 'kimberlykyan@gmail.com'; // Get all submitted fields $submitted_fields = $record->get('fields'); // 2. Locate the email field (assuming the Form Field ID is set to 'email') if ( isset( $submitted_fields['email'] ) ) { $submitted_email = strtolower( $submitted_fields['email']['value'] ); // 3. Perform the block check if ( $submitted_email === $blocked_email ) { // 4. Add an error to the email field to block the submission $handler->add_error( 'email', 'This email address is currently blocked due to spam or abuse.' ); return; } } // If you used a different Form Field ID for your email field (e.g., 'your_email'), // change the 'email' key in the check above: // if ( isset( $submitted_fields['your_email'] ) ) { ... } }, 10, 2 );