篇首语:本文由小常识网(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对象的主要内容,如果未能解决你的问题,请参考以下文章