Add additional filter for 'tickets/email.php' email
In the file /src/Tribe/Meta/Render.php
add an additional filter the meta data to be transformed before the email is sent.
$meta_data = apply_filters( 'tribe_event_tickets_plus_email_meta_data', $meta_data, $item );
Why?
I have a meta field that stores the user's ID instead of their name so I can use that throughout the application to grab additional information related to the user. So when the email goes out it only shows their user id instead of showing the name of the user.
Adding this filter will allow me to transform that id into whatever content I would like.

1 comment
-
Hi. Thanks for your detailed message.
The code is currently this: `$meta_data = get_post_meta( ...`
Could you use the "get_{$meta_type}_metadata" filter that ultimately runs within https://developer.wordpress.org/reference/functions/get_metadata/ ?