Reply To: Save to Database

Home Forums Quform WordPress Save to Database Reply To: Save to Database

#32631
linux
Participant

Try to use code below. But still not save to database

//SAVE TO DATABASE
add_filter(‘quform_post_process_1’, function (array $result, Quform_Form $form) {
global $wpdb;

$data = array(
‘nama’ => $form->getValueText(‘quform_1_3′),
’email’ => $form->getValueText(‘quform_1_4’),
‘telepon’ => $form->getValueText(‘quform_1_5’),
‘pelatihan’ => $form->getValueText(‘quform_1_6’),
);

$wpdb->insert(‘pelatihan’, $data);

return $result;
}, 10, 2);

Be inspired. © 2020 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy