[wordpress插件] Contact Form 7 Get and Show Parameter from URL联系表格7从URL获取和显示参数

wordpress 插件 文章 2020-03-31 01:40 514 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

There are times when using the Contact Form 7 WordPress plugin where you need to pass a parameter

在使用Contact Form 7 WordPress插件时,有时需要传递参数

from the URL and into a hidden field or display it in the form.

从URL进入隐藏字段或以表格形式显示。

This plugin is great for passing things

这个插件非常适合传递东西

such as order numbers, selected packages, or even security information.

例如订单号,选定的包裹,甚至是安全信息。

安装步骤

    1. Go to the “Plugins” section of your WordPress admin panel
    2. 转到WordPress管理面板的“插件”部分

    3. Click “Add New” at the top
    4. 点击顶部的“添加新”

    5. Click “Upload” at the top
    6. 点击顶部的“上传”

    7. Upload the included zip file
    8. 上传随附的zip文件

    9. Activate the plugin through the ‘Plugins’ menu in WordPress
    10. 通过WordPress中的“插件”菜单激活插件

    11. For getting a parameter as a hidden text field, use [getparam value]
    12. 要获取参数作为隐藏文本字段,请使用[getparam值]

    13. For getting a parameter to display as text, use [showparam value]
    14. 要使参数显示为文本,请使用[showparam值]

    The above examples assume a URL such as http://mywebsite.com/contact?value=hello.

    以上示例假设使用URL,例如http://mywebsite.com/contact?value=hello。

    If you are using a different parameter such as order=hello, use [getparam order]

    如果您使用其他参数(例如order = hello),请使用[getparam order]

下载地址
https://downloads.wordpress.org/plugin/contact-form-7-get-and-show-parameter-from-url.0.9.7.zip
-EOF-

AI助手支持GPT4.0