Contact Form 7 3.4 is now available. This is the first major upgrade in seven months and the main feature of this release is HTML5 support.
Contact Form 7 3.4 introduces 10 new form-tags corresponding to HTML5 input types, including
date. It also changes the existing form-tags to reflect those changes that HTML5 introduces; for example, using the
text input type and supporting the use of the
maxlength attribute for textarea.
» Download Contact Form 7 plugin from WordPress.org
Note for Upgrading Users
- This version of Contact Form 7 requires WordPress 3.5 or higher. If you are using older versions of WordPress, please upgrade WordPress first.
- Since Contact Form 7 3.4 has changed the
typeattribute of the
inputelement used for email fields from
input[type="text"]CSS selector no longer matches the email fields. For email fields, the use of the
input.wpcf7-textselector is preferable.
- If you don’t wish to use HTML5 input types, you can disable this by adding the following code into your theme’s functions.php file:
add_filter( 'wpcf7_support_html5', '__return_false' );
- Introduced the following form-tags:
[url*]for URL field,
[tel*]for telephone number field,
[range*]for number input field, and
[date*]for date input field.
- Changed the
typeattribute of email field (
- Support the use of the
maxlengthattribute for textarea (
- Support the use of HTML5
watermarkis still supported and works as an alias of
- Support the use of
- Add the attribute
aria-required="true"to each required field.
- Introduced WPCF7_Shortcode class and rewrote all shortcode handler functions using it.
- The following action and filter hooks have been introduced:
- The jQuery Form Plugin (jquery.form.js) has been updated to 3.32.0.
- The required WordPress version has been changed and now requires WordPress 3.5 or higher.