[wordpress插件] Contact Form 7 Customfield in mail通过邮件联系Form 7 Customfield

wordpress 插件 文章 2020-03-31 00:20 444 0 全屏看文

AI助手支持GPT4.0

评分
74
描述

Contact Form 7 is an awesome WordPress plugin that provides all sorts of great features for creating Contact Forms.

Contact Form 7是一个很棒的WordPress插件,提供了用于创建Contact Forms的各种强大功能。

I’ve used it on a lot of sites with great succes.

我已经在很多成功的网站上使用了它。

One thing it doesn’t handle though, are customfields.

它不能处理的一件事是自定义字段。

With this plug in you can now use customfields in the mail section of Contact Form 7!

有了这个插件,您现在可以在联系表7的邮件部分中使用自定义字段!

I created this plug-in because I had the need to use the same contact form on numerous places but the email adresses needed to be diffrent for all of them.

之所以创建此插件,是因为我需要在许多地方使用相同的联系表单,但是所有电子邮件地址都必须有所不同。

(I was using it to create a showcase website in wich visitors are able to contact the creator of the work/art, without showing the full email adress)

(我曾用它来创建一个展示网站,以便访问者能够与该作品/艺术的创建者联系,而无需显示完整的电子邮件地址)

What you could do with this might include:

您可以执行以下操作:

    • Use the same contact form in different posts/pages
    • 在不同的帖子/页面中使用相同的联系方式

    • Send custom field values in the email
    • 在电子邮件中发送自定义字段值

    There are many more case-specific examples.

    还有更多特定于案例的示例。

    I searched for a solution, but there was none to be found.

    我在寻找解决方案,但没有找到。

    This plugin provides an elegant solution that leaves the Contact Form 7 Plugin intact.

    该插件提供了一种优雅的解决方案,可以使Contact Form 7插件保持完整。

    WHAT DOES IT DO?

    它做什么?

    This plugin provides a new special mail tag for the mail section of the Contact Form 7 Plugin.

    此插件为Contact Form 7插件的mail部分提供了一个新的特殊邮件标签。

    It allows you to get custom field values in the mail section of Contact Form 7

    它使您可以在联系表7的邮件部分中获取自定义字段值

    HOW TO USE IT

    如何使用它

    After installing and activating the plugin, you should use it like the following:

    安装并激活插件后,您应按以下方式使用它:

    Double underscores are key!

    双下划线是关键!

    The plug in recognizes a new special mail tag:

    插件可识别新的特殊邮件标签:

    [_customfield]

    [_customfield]

    The tag alone doesn’t work though!

    仅此标签无法正常工作!

    You need to add two underscores after the tag:

    您需要在标记后添加两个下划线

    [_customfield__]

    [_customfield __]

    After this you can enter your custom field key i.e.:

    此后,您可以输入自定义字段键,即:

    [_customfield__fieldName]

    [_customfield__fieldName]

    NOTE

    注意

    Multiple values per key (an array) are converted to a comma separated string.

    每个键(数组)的多个值将转换为逗号分隔的字符串。

安装步骤

This section describes how to install the plugin and get it working.

本节介绍如何安装插件并使其正常工作。

    1. Install the Contact Form 7 Plugin
    2. 安装联系表7插件

    3. Install this Plugin
    4. 安装此插件

    5. It will now work!
    6. 现在可以使用!

下载地址
https://downloads.wordpress.org/plugin/contact-form-7-customfield-in-mail.zip
-EOF-

AI助手支持GPT4.0