25% off ProSNIPC25OFF

Disable Email Domain Typo Suggestion

Dequeues the mailcheck library used by WooCommerce and WPForms to suppress the 'Did you mean …?' email-domain correction prompt.

PHPby SnipCraft
php
<?php
// Remove the mailcheck script (email-domain typo suggester) from both
// public pages (WooCommerce checkout) and admin screens (user creation).
add_action( 'wp_enqueue_scripts',    'scseed_disable_email_mailcheck', 100 );
add_action( 'admin_enqueue_scripts', 'scseed_disable_email_mailcheck', 100 );
if ( ! function_exists( 'scseed_disable_email_mailcheck' ) ) {
    function scseed_disable_email_mailcheck() {
        wp_dequeue_script( 'mailcheck' );
        wp_deregister_script( 'mailcheck' );
    }
}

// WPForms-specific disable flag.
add_filter( 'wpforms_mailcheck_enabled', '__return_false' );
#admin#email#forms#ux#woocommerce