Hi Andras,
Thanks for your response.
Both those functions are very useful and I can use them both to check if the event is in stock. However, with the way the search is built, I need to query by meta key, meaning I will need to store custom meta on the event to show whether or not the event is in stock
Ideally, I would have a meta key called something like _is_instock and I could use the tribe_events_has_soldout function to populate the meta value of this as true or leave blank.
I think I need a hook which will run a function at the appropriate time and make sure this meta value is always up to date and correct.
Do you have any suggestions?
Thanks