Would you like to disable the email suggestion on your WPForms? With a small PHP snippet, you can easily accomplish this. This tutorial will show you how to disable this option on all Email form fields used on your site with WPForms.
By default, all Email form fields will automatically try and suggest the email address. This is extremely helpful to catch any typo errors in the email address when visitors are completing your forms to assure accuracy.
However, depending on the email extensions used in your country, this extra precaution may not be necessary. So we’ve created a filter that makes this helpful option easily turned off.
To turn off the email suggestion, just add this code snippet to your site
/** * Turn off the email suggestion. * * @link https://wpforms.com/developers/how-to-disable-the-email-suggestion-on-the-email-form-field/ * */ // Disable email suggestion on Email form field add_filter( 'wpforms_mailcheck_enabled', '__return_false' );
And that’s it, you’ve successfully disabled the email suggestion on your WPForms.
Would you like to remove the footer text that appears at the bottom of the email notifications? Take a look at our article on How to Remove or Change Email Notification Footer Text.
Filter Reference: wpforms_mailcheck_enabled