這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Gravity Forms Extended Merge Tags

外掛說明

This plugin allows you to use $_COOKIE, $_SERVER, $_SESSION, $_GET, $_POST and $_REQUEST data in a Gravity Form through the merge tags of a field. I’ve only really tested this using a hidden field.

螢幕擷圖

  • Showing the merge tags dropdown

安裝方式

  1. Copy the plugin files to wp-content/plugins/

  2. Activate plugin from Plugins page

  3. Add a hidden field to your Gravity Form

  4. Go to the Advanced tab in the field settings and hit the down arrow to the right of the Default Value text box

  5. Scroll down to Custom and choose either Cookie Data, Server Data or Session Data

  6. Change the “key” text with the data you are looking for

使用者評論

2016 年 9 月 3 日
It’s amazing how few people seem to know about this plugin. Incredibly simple, but also really helpful when using $_SESSION variables to track website visitors. I use it to get referring website data, so I can easily store it in a $__SESSION variable. Then when the visitor fills out a Gravity Form, I can pass along the stored vars. I crafted a Lead Source Tracking for Salesforce script that uses this plugin to pass along the details to Salesforce when a form is submitted.
閱讀全部 1 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Gravity Forms Extended Merge Tags〉的開發相關工作。

參與者

變更記錄

1.1

  • Added support for $_GET, $_POST and $_REQUEST variables
  • Cleaned up the code to better adhere to WordPress coding standards

1.0

  • Initial release