Linux 软件免费装
Banner图

Contact Form 7 Modules

开发者 katzwebdesign
katzwebservices
更新时间 2017年2月2日 10:00
捐献地址: 去捐款
PHP版本: 2.8 及以上
WordPress版本: 4.7.2
版权: GPLv2 or later

标签

cf7 Contact Form 7 Contact Forms 7 hidden fields all fields

下载

1.0 1.1 1.1.1 1.1.2 1.2 1.2.1 1.2.2 1.2.3 1.3 1.3.1 1.3.2 1.3.3 1.4 1.4.1 1.4.2 2.0 2.0.2

详情介绍:

Add Hidden Fields to Contact Form 7 The Contact Form 7 plugin has over 1 million active installations, yet the great plugin still lacks a simple feature: hidden fields. This plugin adds hidden fields to Contact Form 7 once and for all. Inserting dynamic values You can also choose to have the value of the hidden field dynamically populated in your form when you are contacted. To do so, choose the "Default value" to be: The following values will be replaced if an user is logged in: And you can also use it for user custom meta data using the format of user-{field}: You can also use a filter: hook into the wpcf7_hidden_field_value filter to modify the value of the hidden field using add_filter(). If you know the ID of the input, you can also use the wpcf7_hidden_field_value_[#ID] filter. Now, when someone contacts you using your Contact Form 7 contact form, you can have lots more information about their visit - and you'll see it when you receive the email that tells you you've been contacted. Easily Send All Submitted Fields At Once Save time setting up your form emails...and never miss a field! One of the limitations of Contact Form 7 is that you need to manually add each field to generated emails. This means that if you update the form with a new field and forget to add it to your email message, you won't receive it in your email. No longer.. Using the Send All Fields module, you simply need to add [all-fields] to your message, and you will receive every field submitted. If you use HTML formatting, the formatting even looks nice. Visit the official Contact Form 7 Modules plugin page for more support & additional information

安装:

  1. Upload plugin files to your plugins folder, or install using WordPress' built-in Add New Plugin installer
  2. Activate the plugin
  3. Edit a form in Contact Form 7
  4. Choose "Hidden field" from the Generate Tag dropdown
  5. Follow the instructions on the page

屏幕截图:

  • The Hidden fields tag generator
  • The `[all-fields]` Mail tag

升级注意事项:

1.4.2 on March 25, 2014
  • Added: [all-fields] shortcode now skips sending data for empty fields
  • Added wpcf7_send_all_fields_send_empty_fields filter to override the setting. See the FAQ.
  • Added: [all-fields] shortcode output filters (see the FAQ item "How do I modify the output...")
  • wpcf7_send_all_fields_format_before
  • wpcf7_send_all_fields_format_item
  • wpcf7_send_all_fields_format_after
1.4 & 1.4.1 on March 15, 2014
  • Added: Internationalization support. Help translate the plugin! The below updates apply only to the Hidden Fields module.
  • Added: Support for retrieving other user data by using the field name user_{data you want}. See the FAQ "How do I set non-standard user data as hidden field values?"
  • Added: wpcf7_hidden_field_implode_glue filter. If you want to modify how arrays of data get combined into a string (default is CSV), use this filter.
  • Fixed: $post global no longer needs to be defined for user data to be successfully passed.
  • Fixed: Now supports multiple post custom_field data values, instead of only fetching one
  • Modified: Added callback function to format the hidden field instead of relying on depricated PHP
  • Modified: Improved include path for functions.php file
  • Modified: Added text to support additional localization
1.3.3
  • Hidden Fields: Fixed issue that broke the plugin with the WordPress 3.8
1.3.2
  • Hidden Fields: Fixed PHP notice caused by improper adding of script in administration
  • Hidden Fields: Fixed double inputs that were the exact same (as reported here)
1.3.1
  • Fixed: issue in Hidden Fields where the [hidden-###] shortcode no longer worked and only [post_title] format worked.
  • Fixed: issue in Send All Fields where the HTML was showing as text.
1.3
  • Fixed: Hidden field now supports new Contact Form 7 format; post fields will work again.
  • Fixed: Send All Fields no longer causes spinning form submission in WordPress 3.5
  • Added: access any of the data in $post object by using the variable name. Example: You want post_modified? Use [hidden hidden-123 "post_modified"]
  • Added: If an user is logged in, you can now use user_name, user_id, user_email, user_display_name replacement values
  • Added/Improved: post_author will now return the author's Display Name. Use post_author_id for the post author's ID.
  • Added: Inline instructions on the Hidden field module
  • Improved: In Send All Fields, the name of the field now has dashes replaced with spaces. This will show "your name", rather than "your-name". Thanks, @hitolonen
1.2.2
  • Removed _wpnonce field from [all-fields] output
  • Fixed a conflict when using "Send All Fields" module alongside "Hidden Fields" module (as reported here)
1.2.1
  • Added support for checkboxes with Send All Fields ([all-fields])
1.2
  • Hidden fields are now displayed inside a hidden <div> instead of Contact Form 7's default <p>. This makes hidden fields more hidden :-)
  • Added brand-new module: Send All Fields. Allows you to add a [all-fields] tag to your email message that includes every submitted field in one tag.
1.1.1 1.1
  • Added support for using post titles as hidden fields
  • Added support for using custom field values as hidden fields
  • Added wpcf7_hidden_field_value filter to hook into using add_filter()
1.0
  • Woot!

常见问题:

How do I turn off formatting the key in the [all-fields] output?

Add the following to your theme's functions.php file: add_filter('wpcf7_send_all_fields_format_key', '__return_false');

How do I set non-standard user data as hidden field values?

Starting with Version 1.4, you can access user data, including meta data. You need to set the default value as: user-{meta_key} where {meta_key} is the key of the meta field you want the value of. To get the values of WordPress default profile fields, for example, you would use:

  • user-aim - AOL
  • user-jabber - Jabber / Google Talk
  • user-description - Biographical description

What is the plugin license?

  • This plugin is released under a GPL license.

How do I send empty values with the [all-fields] shortcode?

Add this to your functions.php file: add_filter('wpcf7_send_all_fields_send_empty_fields', '__return_true');

How do I modify the output of the [all-fields] shortcode?

  • wpcf7_send_all_fields_format_before - Before the loop of fields (<dl> for HTML output)
  • $value string Previous output
  • $format string Either "html" or "text"
  • wpcf7_send_all_fields_format_item - Change each item output. Passes four arguments:
  • $value string Previous output
  • $k string Field label
  • $v string Value of the field
  • $format string Either "html" or "text"
  • wpcf7_send_all_fields_format_after - After the loop of fields (</dl> for HTML output). Passes two arguments:
  • $value string Previous output
  • $format string Either "html" or "text"

更新日志:

2.0.1 & 2.0.2 on February 1, 2017 2.0 on June 28, 2015 1.4.2 on March 25, 2014 1.4 & 1.4.1 on March 15, 2014 1.3.3 1.3.2 1.3.1 1.3 1.2.2 1.2.1 1.2 1.1.1 1.1 1.0