Comment Form Validation
Validate WordPress comments with customizable rules, inline errors, server-side checks, and lightweight spam protection.
Install in
Comment Form Validation helps site owners validate the standard WordPress comment form without requiring a complicated setup. Validation runs in the browser for a better visitor experience and on the server to prevent client-side checks from being bypassed.
The plugin keeps the original automatic comment form validation workflow and adds an optional settings page under Settings > Comment Validation.
Features
- Automatic validation for the standard WordPress comment form.
- Required name and email validation for logged-out visitors.
- Optional website URL validation when a website is provided.
- Required comment validation with configurable minimum and maximum character limits.
- Server-side validation in addition to browser-side validation.
- Accessible inline validation messages and invalid-field indicators.
- Customizable validation error messages.
- Optional honeypot field for basic automated spam detection.
- Optional minimum form completion time check.
- Nonce verification for spam-protection fields added to the standard comment form.
- Lightweight JavaScript without a bundled third-party validation library.
- Translation-ready strings.
Privacy
The plugin does not transmit comment form data to the plugin author or any external service. When spam protection is enabled, it adds a nonce, a hidden honeypot field, and a form timestamp to the standard comment form. These values are used locally when the comment is submitted.
Written by Joobi from the project's own listing. See the source page
2.0.0
- Added an optional settings page for validation and spam protection.
- Added configurable name, email, website, and comment validation.
- Added minimum and maximum comment length settings.
- Added customizable validation messages.
- Added server-side comment validation.
- Added honeypot and minimum submission-time spam checks.
- Added nonce verification for the standard comment form’s spam-protection fields.
- Replaced the outdated bundled jQuery Validation library with lightweight vanilla JavaScript.
- Improved frontend error styling and accessibility.
- Updated plugin metadata, requirements, tags, and documentation.
1.2
- Initial public version.
Follow this listing's changes (Atom feed)