Skip to content

Commit

Permalink
Don't display ticket creation form on public submissions
Browse files Browse the repository at this point in the history
Fixes #73
  • Loading branch information
joedolson committed Oct 20, 2024
1 parent c0f021b commit 0e9134a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mt-processing.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0e9134a

Please sign in to comment.