Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add filter for the transient's name in Eventbrite Manager. #37
Thank you for this great plugin. It definitely saved me a lot of time last week!
Recently, I had to use Eventbrite API in a server that runs a 32-bit build of PHP. As you know, the events IDs from Eventbrite cannot be represented as a 32-bit integers, causing problems with most of the plugin's features.
I was able to get most of the features I need working, using filters and actions to insert the original ID in the necessary places. The details are here. My approach does not solve all the problems, but was almost enough for us.
Unfortunately, there is one more problem that I don't think I can solve using existing hooks. When the Event Manager creates the transient name to cache the results of a request to the
In my website, the requests ultimately returns the desired information, because I update the endpoint's URL to include the real ID, but Event Manager is not aware of that modification and as a result all my single event pages are showing information for the same event: the cached version of whichever event was requested first.
The commit in this PR adds a filter in the
Is it possible to add that filter to the plugin?
I've been trying to solve the issues I found without touching the plugin's code, and that filter is, I think, the last piece of the puzzle. If you merge this PR, I can update my copy of Eventbrite API with the same modifications, knowing the next version will officially introduce the filter, thus making sure my solution will continue to be compatible.