In Event Tickets Plus, the Individual Attendee Collection (IAC) feature requires all attendees to provide their details, including their name and email. By default, both the name and email fields must be unique for each attendee. While this ensures separate records, it may not be suitable for scenarios where parents buy tickets for themselves and their children, as children may not have individual email addresses.

In this article, we will explore how to remove the requirement for the email field to be unique in order to accommodate specific use cases better.

Multiple Attendees, One Email Address

To allow multiple attendees to share the email, you can use the following code snippet. This will modify the attendee registration process and permit identical emails across different tickets,

Alternatively, here is a snippet that would allow you to change the default labels for the IAC fields.

Below is another snippet that allow you to remove the input requirement of the email address, as well as the unique requirement.

add_filter( 'tribe_tickets_plus_attendee_registration_iac_fields', function ( $fields ) {
		$fields['email']['classes']['tribe-tickets__form-field--unique'] = false;
		$fields['email']['required'] = '';
		return $fields;
} );

Add the code snippet to the functions.php file of your theme, or use your preferred method for integrating snippets into your WordPress site, such as the free Code Snippets plugin.

By making these customizations, you can adjust the Individual Attendee Collection feature to better fit different event setups where unique details for each attendee may not be practical. This approach offers a practical solution, freeing you from the limitations of the default settings while still collecting essential information from attendees.

For Developers