Snippet Library

Hide tickets block when logged in user already has a ticket – template override

This template override will hide the tickets block, if the logged in user has already purchased a ticket for the given event.

For it to work the following setting has to be enabled:

  • Tickets > Settings > General > Require users to log in before they purchase tickets

This is a template ovverride for the following file:
wp-content/plugins/event-tickets/src/views/v2/tickets.php

This file should be placed at:
wp-content/themes/[your-theme]/tribe/tickets/v2/tickets.php