{"id":41263,"date":"2010-11-17T08:00:00","date_gmt":"2010-11-17T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/contact-form-7-modules\/"},"modified":"2017-02-02T10:00:00","modified_gmt":"2017-02-02T10:00:00","slug":"contact-form-7-modules","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/contact-form-7-modules\/","title":{"rendered":"Contact Form 7 Modules"},"content":{"rendered":"<h3>Add Hidden Fields to Contact Form 7<\/h3>\n<p>The Contact Form 7 plugin has over <em>1 million<\/em> active installations, yet the great plugin still lacks a simple feature: <strong>hidden fields<\/strong>. This plugin adds hidden fields to Contact Form 7 once and for all.<\/p>\n<h4>Inserting dynamic values<\/h4>\n<p>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 \u201cDefault value\u201d to be:<\/p>\n<ul>\n<li><code>post_title<\/code> \u2013 Inserts the title of the post\/page<\/li>\n<li><code>post_category<\/code> \u2013 The categories of the post or page<\/li>\n<li><code>post_url<\/code> \u2013 The URL of the post or page<\/li>\n<li><code>post_author<\/code> \u2013 The author of the post or page<\/li>\n<li><code>custom_field-[Name]<\/code> \u2013 The value of a post or page\u2019s custom field. If you had a custom field \u201cFoo\u201d, you would use the following as the hidden field value: <code>custom_field-Foo<\/code><\/li>\n<\/ul>\n<p>The following values will be replaced if an user is logged in:<\/p>\n<ul>\n<li><code>user_name<\/code>: User Login<\/li>\n<li><code>user_id<\/code>: User ID<\/li>\n<li><code>user_email<\/code>: User Email Address<\/li>\n<li><code>user_display_name<\/code>: Display Name (Generally the first and last name of the user)<\/li>\n<li><code>user_url<\/code>: User Website<\/li>\n<\/ul>\n<p>And you can also use it for user custom meta data using the format of <code>user-{field}<\/code>:<\/p>\n<ul>\n<li><code>user-aim<\/code>: AIM<\/li>\n<li><code>user-jabber<\/code>: Jabber \/ Google Talk<\/li>\n<li><code>user-description<\/code>: User Bio<\/li>\n<\/ul>\n<p><strong>You can also use a filter:<\/strong> hook into the <code>wpcf7_hidden_field_value<\/code> filter to modify the value of the hidden field  using <a href=\"https:\/\/codex.wordpress.org\/Function_Reference\/add_filter\" rel=\"nofollow ugc\"><code>add_filter()<\/code><\/a>. If you know the ID of the input, you can also use the <code>wpcf7_hidden_field_value_[#ID]<\/code> filter.<\/p>\n<p>Now, when someone contacts you using your Contact Form 7 contact form, you can have lots more information about their visit \u2013 and you\u2019ll see it when you receive the email that tells you you\u2019ve been contacted.<\/p>\n<h3>Easily Send All Submitted Fields At Once<\/h3>\n<h4>Save time setting up your form emails\u2026and never miss a field!<\/h4>\n<p>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\u2019t receive it in your email. <strong>No longer.<\/strong>.<\/p>\n<p>Using the <strong>Send All Fields<\/strong> module, you simply need to add <code>[all-fields]<\/code> to your message, and you will receive every field submitted. If you use HTML formatting, the formatting even looks nice.<\/p>\n<h4>Visit the official <a href=\"https:\/\/katz.co\/contact-form-7-hidden-fields\/\" rel=\"nofollow ugc\">Contact Form 7 Modules plugin page<\/a> for more support & additional information<\/h4>\n","protected":false},"excerpt":{"rendered":"<p>Contact Form 7 - Add useful modules such as hidden fields and \"send all fields\" to the Contact Form 7 plugin<\/p>\n","protected":false},"author":65,"featured_media":255840,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Contact Form 7 Modules - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Contact Form 7 - Add useful modules such as hidden fields and \"send all fields\" to the Contact Form 7 plugin"},"footnotes":""},"categories":[1],"tags":[14260,1643,862,12170,14261],"class_list":["post-41263","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-all-fields","tag-cf7","tag-contact-form-7","tag-contact-forms-7","tag-hidden-fields"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/41263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=41263"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/41263\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/255840"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=41263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=41263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=41263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}