This sample coding will add Mailcheck from Kicksend to your registration checkout page. It is helpful for preventing spelling errors in email addresses.
Step 1 - Setup Mailcheck resources
Then upload the mailcheck.min.js file to your WordPress site. You can add it to this location using an SFTP or FTP client like FileZilla, Cyberduck, or Transmit:
You'll need to create the js folder above. This will then be the final installation location:
Step 2 - Add supporting coding
The sample coding in the next section can be added to your child theme’s functions.php file (do not include the opening php tag) or a site specific plugin:
The value 123 in the sample coding should be changed to the page ID of your actual registration checkout page. This can be found by going to your WP dashboard and clicking on the registration checkout WordPress page. The ID appears at the end of the URL.
For example, if the ID for your registration checkout page was 567, then you should use that value in the sample coding instead of 123.
Here is a demo of how it appears on the registration checkout page for Event Espresso 4:
var domains in the sample coding in the next section holds an array (a grouping) of domains to check. Additional domains can be added to the array. For example, if you wanted to add myeventswebsite.com, then you would add a comma after the last entry (outlook.com), then quotes and add the domain between the quotes. Here is an overview of what that might look like:
var domains = ["yahoo.com", "google.com", "hotmail.com", "gmail.com", "me.com", "aol.com", "mac.com", "live.com", "comcast.net", "googlemail.com", "msn.com", "hotmail.co.uk", "yahoo.co.uk", "facebook.com", "verizon.net", "sbcglobal.net", "att.net", "gmx.com", "mail.com", "outlook.com","myeventswebsite.com"];