Mindvalley Post & Get Variables
v1.0.6Mindvalley · 2011年5月27日 上架
Lets you output a POST or GET variable in the page via shortcode.
- 正在使用
- 10+
- 评分
- 5.0 / 5
- 累计下载
- 2,708
- 最近更新
- 2011年12月28日
1 条评价需要 WordPress 3.0.0+已测试到 3.1.4
贡献者
Outputs $_POST or $_GET variable values using shortcodes.
Super duper uberly useful on tracking scripts on eCommerce thank you pages.
Example:
- $_POST[’email’] > [post_var name=”email”]
- $_GET[‘txn_id’] > [get_var name=”txn_id”]
For Array values :
- $_POST[‘user’][’email’] > [post_var] name=”user[email]” [/post_var]
- $_GET[‘user’][‘first_name’] > [get_var] name=”user[first_name]” [/get_var]
- $_GET[‘user’][‘address’][‘line1’] > [get_var] name=”user[address][line1]” [/get_var]
Note: Remember to wrap the name attribute in double quotes (“).