I highly recommend using Kint Debugger to find the methods available on the objects you have.
For example you have the datetime object already, if you install the above and wrap $datetime_next within d(), like so d($datetime_next); you’ll have a nice output with all of the available methods on $datetime_next
To pull the tickets from a datetime you use the tickets() method on that datetime:
Take a look within the EEH_Event_View.helper.php file, there should be a method for what you need in there.
Viewing 3 reply threads
The support post ‘EE4 – Get Next tickets – Number of datetimes and number of hours’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.