1 2 3 4 5 6 7 8 9 10 11 |
function CF7_pre_send($phpmailer) { $output = ""; $output .= "Name: " . $_POST['your-name']; $output .= "Email: " . $_POST['your-email']; $output .= "Message: " . $_POST['your-subject']; file_put_contents( ABSPATH."/cf7outputtest.txt", $output); return $phpmailer; } add_action( 'phpmailer_init', 'CF7_pre_send' ); |
Comments are closed here.