Contact Form 7 で作成したフォームにパラメータを取得する

Contact Form 7 で作成したフォームにパラメータを取得する

まずは「Contact Form 7」で作成したフォームにURLパラメータ取得用のinput要素を追加します。
name属性はここでは introducerID とします。

[text introducerID]

これに、HTTP GET変数からデフォルト値を得る default:get オプションを追加します。

[text introducerID default:get]

読み取り専用としたいので、readonly属性を付加します。

[text introducerID default:get readonly]

「Contact Form 7」側はこれで完了です。
今回は可視化しましたが、フォームの入力者に見せたくない(隠し入力項目とする)場合は「Contact Form 7」のフォームタグタイプに text を使わず hidden を使います。

[hidden introducerID default:get readonly]