From 0e9134a5626b836f233bd20dd0f9f9e3e65ad6fd Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Sun, 20 Oct 2024 11:13:46 -0500 Subject: [PATCH] Don't display ticket creation form on public submissions Fixes #73 --- src/mt-processing.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mt-processing.php b/src/mt-processing.php index 68802dc..fdbe055 100644 --- a/src/mt-processing.php +++ b/src/mt-processing.php @@ -283,6 +283,9 @@ function mt_calculate_discount( $price, $event_id, $payment_id = false ) { * @return string */ function mt_registration_fields( $form, $has_data, $data, $context = 'admin', $model = '' ) { + if ( 'public' === $context ) { + return $form; + } $event_id = 0; $notes = ''; $hide = false;