diff --git a/go-form-plugin/go-form-plugin.php b/go-form-plugin/go-form-plugin.php index 75d4308..b0d6de8 100644 --- a/go-form-plugin/go-form-plugin.php +++ b/go-form-plugin/go-form-plugin.php @@ -229,6 +229,17 @@ function go_form_handle_submission() } } + // Send notification email + // $to = 'nikola@petrovv.com'; + // $subject = 'New Go Tournament Registration'; + + // $message = "A new player has signed up:\n\n"; + // $message .= "Form ID: {$form_id}\n"; + // $message .= "Name: {$data['first_name']} {$data['last_name']}\n"; + + + // wp_mail($to, $subject, $message); + wp_redirect($_SERVER['HTTP_REFERER']); exit; }