Hello,
Thanks for reaching out!
I’m not sure that I quite understand what you’re looking for here, but you can find that function definition under wp-content/plugins/event-tickets_/src/Tribe/Tickets.php. For SQL queries, you might try using the free Query Monitor plugin, which will show you SQL queries that are being called on a specific page.
We are limited in the amount of support that we can provide for custom coding, but if you get stuck or have any questions, please let me know – I’ll be happy to try to point you in the right direction!
Thanks,
Jennifer