Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function wpcf7_do_something (&$WPCF7_ContactForm) {
- $numbene = $cf7->posted_data["NumerodoContrato"];
- $especie = $cf7->posted_data["Especie"];
- $descontm = $cf7->posted_data["DescontoMensal"];
- $nome = $cf7->posted_data["nome"];
- $file645 = $cf7->posted_data["file-645"];
- $file646 = $cf7->posted_data["file-646"];
- $file647 = $cf7->posted_data["file-647"];
- $wpdb->insert ('wp_wpdatatable_2', array(
- 'NumerodoContrato' => $numbene,
- 'especie' => $especie,
- 'descontomensal' => $descontm,
- 'nome' => $nome,
- 'anexoidentidade' => $file645,
- 'anexocomprovanteresidencia' => $file646,
- 'anexodocumentoextra' => $file647
- ) );
- }
- add_action("wpcf7_before_send_mail", "wpcf7_do_something");
Add Comment
Please, Sign In to add comment