php 通过电子邮件检索Gravity Forms $ entry对象

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php 通过电子邮件检索Gravity Forms $ entry对象相关的知识,希望对你有一定的参考价值。

add_action("gform_post_submission", "set_post_content", 10, 2);

function set_post_content($entry, $form){
  //Gravity Forms has validated the data
  //Our Custom Form Submitted via PHP will go here
  // Lets get the IDs of the relevant fields and prepare an email message
  $message = print_r($entry, true);
  // In case any of our lines are larger than 70 characters, we should use wordwrap()
  $message = wordwrap($message, 70);
  // Send
  mail('travis@0to5.com', 'Getting the Gravity Form Field IDs', $message);
}

以上是关于php 通过电子邮件检索Gravity Forms $ entry对象的主要内容,如果未能解决你的问题,请参考以下文章

php Gravity Wiz // Gravity Forms Styles Pro //强制验证消息

php Gravity Wiz // Gravity Forms //按表单名称获取表单ID

php Gravity Wiz // Gravity Forms //添加日期合并标记的格式选项

php Gravity Wiz // Gravity Forms Coupons //允许零金额优惠券

php 在Gravity Forms中更改上载路径

php Gravity Forms限制Content Pro用户注册