2013-10-09 94 views
0

我已经在我的文字新闻网站上发了一个感谢页面,并且在用户提交信息后重定向了联系表单7以显示该页面。Wordpress联系表7

有没有办法显示用户在感谢页面上输入的信息?如果是的话,有人可以帮助我。

感谢

回答

0

你需要在联系表单管理页面的底部下方的其他设置字段行添加

on_sent_ok: "location = 'http://domain.com/thankyoupage';" 

可以传递信息作为查询字符串

+0

能否请您提供一个例子如何查询字符串可以使用联系表格7添加的信息构建在此URL中: on_sent_ok:“location ='http://domain.com/thankyoupage';” 我将不胜感激。 谢谢, – user2861783

+0

你可以调用如下函数: add_action('wpcf7_mail_sent','custom_wpcf7_mail_sent'); function custom_wpcf7_mail_sent($ wpcf7) { \t $ on_sent_ok = $ wpcf7-> additional_setting('ip_on_sent_ok',false); \t如果(is_array($ on_sent_ok)&&计数($ on_sent_ok)> 0) \t { \t \t wp_redirect(修剪($ on_sent_ok [0])。 '?电子邮件=' $ wpcf7-> posted_data ['用户-电子邮件']); \t \t exit; \t} } –