izta
Forum Replies Created
-
function int_reg($contact_form)
{
//Get the form ID
$form_id = $contact_form->id();if ($form_id == 4645) {
global $wpdb;
$formtypeid = “1”;$submission = WPCF7_Submission::get_instance();
if ($submission) {
$posted_data = $submission->get_posted_data();
}//spe data
$v_yourName = $posted_data[‘username’];
$v_yourMail = $posted_data[‘usermail’];$mail = $contact_form->prop(‘mail’); // returns array
$wpdb->insert(‘form_sub’,
array(
‘username’ => $v_yourName,
‘usermail’ => $v_yourMail,
‘formDetail’ => $mail[‘body’],
‘formtypeid’ => $formtypeid
)
);$mail[‘body’] .= ‘<br /> Co’;
$contact_form->set_properties(array(‘mail’ => $mail));
}
}
add_action( ‘wpcf7_before_send_mail’, ‘int_reg’ );
I wrote a code like this. Currently i can’t pull the data in the message body, i can only get the tags; as you can see in the photos… How can I pull the data inside, not the tags.- This reply was modified 6 years ago by izta.