In this recipe, I’ll show you how to implement a user input validation that sets the upper limit of checkbox selection. This validation is based on the Schema-Woven Validation (SWV) mechanism, so it has some big advantages over the previous filter-based validation, such as:
You can use validation rules already defined by SWV, so you don’t need to code the validation logic yourself.
Once you create an SWV validation rule, the rule can work anywhere as long as SWV is supported. On the other hand, filter-based validation only works on the server side.
From the next major release, Contact Form 7 will employ a new policy on support for old WordPress and PHP versions. In this policy, the plugin supports:
WordPress: The second latest major version (at the time of the plugin’s major release) and greater.
PHP: Versions recommended by the second latest major version of WordPress.
You may realize that performance on this site is better than before. You are right. We migrated this site to Kinsta hosting. Not only better performance, but we achieved a significant cost reduction ($6,624/year => $2,250/year).
Contact Form 7 version 5.7.5 is now available. This minor update release includes several improvements and bug fixes. Also, this is the plugin’s first release that has been tested with WordPress 6.2.
Do you remember when we learned how to register a custom form-tag type in a previous recipe? We used the wpcf7_add_form_tag() function and set the third parameter to array( 'name-attr' => true ).
We call it features of a form-tag. Contact Form 7 has a set of predefined features (listed below), and, by specifying some of them through a form-tag type declaration, you can characterize each form-tag instance of the type.