Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/xwp/mc-validate-replacement/archive/refs/heads/main.zipMailChimp Validate Replacement Plugin
MC Validate Replacement is a WordPress plugin designed to replace the default MailChimp mc-validate.js script with a more performant, modern JavaScript solution for validating MailChimp signup forms embedded on your WordPress site.
Description
This plugin automatically dequeues the standard MailChimp validation script (if present) and enqueues a custom validation script (assets/js/mc-validate.min.js) and its associated styles (assets/css/mc-validate.css). The primary goal is to improve front-end performance by using a potentially lighter script and loading assets efficiently (deferring JavaScript, loading CSS asynchronously).
The validation logic is inspired by modern HTML5 form validation and provides user feedback for common input errors directly on the form.
Features
- Replaces the default
mc-validate.jsdownloaded from MailChimp. - Provides client-side validation for MailChimp forms using standard HTML5 validation attributes (
required,type="email",minLength,maxLength,pattern, etc.). - Displays inline error messages for invalid fields.
- Loads the validation JavaScript using the
deferstrategy for better performance. - Loads the associated CSS asynchronously with a `
Releases
1 release.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.