Hey Tac,
Thanks for following up! Add the following snippet to your theme’s (or child theme’s) functions.php file and it will validate that there’s at least one ticket added to the event. It doesn’t check which type of ticket, so it will work for RSVP and/or WooCommerce tickets 😉
/* Tribe, make sure the event has at least a ticket added */
add_filter( 'tribe_community_events_validate_submission', 'tribe_ce_validate_tickets', 10, 3 );
function tribe_ce_validate_tickets ( $valid, $submission, $handler ) {
if ( !tribe_events_has_tickets ( $submission['ID'] ) ) {
$handler->add_message( 'Please add at least one ticket to the event', 'error' );
$valid = false;
}
return $valid;
}
Please let me know if it works for you,
Best,
Nico