Home › Forums › Ticket Products › Eventbrite Tickets › Does EB Tickets use tribe_get_ticket_form() function to output ticket?
- This topic has 8 replies, 3 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
October 2, 2012 at 3:07 am #25971QParticipant
If yes, please explain how – if not – why not? the function seems to be placed there for this use – please show how I can filter this to wrap the ticket in a certain div ID – for example:
Thanks!
October 2, 2012 at 3:08 am #25972QParticipantposting removed my code – I’ll try with
tags..
October 2, 2012 at 3:08 am #25973QParticipantbit crap not to be able to post code snippets to a forum about code – http://pastebin.com/7YrNZVCk
October 2, 2012 at 6:45 am #25976BarryMemberYep, we’re definitely aware of that and are hoping to improve things in that regard soon. In the meantime, please continue to use services like Pastebin and Gist as you have just done.
If yes, please explain how – if not – why not?
Yes it does, it simply uses WordPress filters to allow other plugins (such as Eventbrite) to control or add to the output.
October 2, 2012 at 6:56 am #25977BarryMemberSome example code: http://pastebin.com/6s2jZc2y
October 2, 2012 at 8:05 am #25978QParticipantThanks Barry – that’s basically what I had except you removed the first check if tribe_get_ticket_form() returned anything – either way, thanks
October 2, 2012 at 8:45 am #25981BarryMemberYeah so I actually removed that extra tribe_get_ticket_form() because it’s superfluous, I’d regard it as a bug (and I’ve logged it as such – so thanks for bringing it to our attention).
The reason your code didn’t work initially was because as soon as tribe_get_ticket_form() was evaluated it was also printing out the Eventbrite form, so the second call didn’t actually do anything.
So that’s all a bit confusing and again I have logged this as a bug, hopefully it can be revised in a future version and made a little clearer. For the time being it sounds like you’re on track with this one though 🙂
October 2, 2012 at 8:55 am #25982QParticipantthanks – good work..
July 7, 2015 at 6:26 am #977888Support DroidKeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Does EB Tickets use tribe_get_ticket_form() function to output ticket?’ is closed to new replies.