JS Comment Form Validation WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
Simple comment form validation based on the jQuery Validation plugin
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/wearerequired/js-comment-form-validation/archive/refs/heads/master.zipOn Packagist as wearerequired/js-comment-form-validation:
composer require wearerequired/js-comment-form-validationEasy to use client-side form validation for WordPress comments.
Inspired by Instant Comment Validation. Powered by the jQuery Validation plugin.
Hooks & Filters
The plugin provides a filter to change the settings passed to the JavaScript.
js_comment_form_validation_settings Filter
Allows you to filter the data that is sent to the JavaScript, like error messages and minimum required comment length.
add_filter( 'js_comment_form_validation_settings', function( $script_data ) {
$script_data['rules']['url']['required'] = true;
return $script_data;
} );Releases
4 releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.