Guest User

Untitled

a guest
Mar 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. function wpcf7_do_something (&$WPCF7_ContactForm) {
  2.  
  3. $numbene = $cf7->posted_data["NumerodoContrato"];
  4. $especie = $cf7->posted_data["Especie"];
  5. $descontm = $cf7->posted_data["DescontoMensal"];
  6. $nome = $cf7->posted_data["nome"];
  7. $file645 = $cf7->posted_data["file-645"];
  8. $file646 = $cf7->posted_data["file-646"];
  9. $file647 = $cf7->posted_data["file-647"];
  10.  
  11.  
  12. $wpdb->insert ('wp_wpdatatable_2', array(
  13. 'NumerodoContrato' => $numbene,
  14. 'especie' => $especie,
  15. 'descontomensal' => $descontm,
  16. 'nome' => $nome,
  17. 'anexoidentidade' => $file645,
  18. 'anexocomprovanteresidencia' => $file646,
  19. 'anexodocumentoextra' => $file647
  20.  
  21.  
  22. ) );
  23.  
  24.  
  25. }
  26. add_action("wpcf7_before_send_mail", "wpcf7_do_something");
Add Comment
Please, Sign In to add comment