Getting attendee Meta using aatendee_id

Home Forums Ticket Products Event Tickets Plus Getting attendee Meta using aatendee_id

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1448043
    Mike Staines
    Participant

    Hi,

    Following instuctions from this Thread
    https://theeventscalendar.com/support/forums/topic/additional-columns-in-the-attendees-list-csv-export-2/

    I have been able to add a column to my exported csv. The problem I am having is getting the attendee meta so I can run a query to produce extra fields

    I am able to use $item[‘attendee_id’] to retrieve the attendee ID for each attendee but I don’t know how to get the attendee name or retrieve data using that id.

    Thanks

    #1450418
    Andras
    Keymaster

    Hi Mike,

    Thanks for reaching out!

    The attendee meta data is linked to the purchased ticket. (The attendee_id as well.)

    You should be able to get the attendee meta with this function:

    Supply it with the ID of the sold ticket, use ‘_tribe_tickets_meta’ as the meta key and ‘false’ as the single. Something like this:

    $attendee_metadata = tribe_get_event_meta ( '123', '_tribe_tickets_meta', false );

    This will return an array with the data.

    Let me know if this helps.

    Cheers,
    Andras

    #1450432
    Mike Staines
    Participant

    Thank you very much

    #1450506
    Andras
    Keymaster

    Sure think Mike, happy I could help!

    Since this is marked resolved I am going to close this ticket, but if you need anything else related to this topic or another please create a new ticket and we’ll be happy to help.

    Cheers,
    Andras

    PS: If you like our plugins, and you didn’t yet do so 🙂 we would be happy to receive a review in the wordpress.org repository. Thanks!
    https://wordpress.org/support/view/plugin-reviews/the-events-calendar/
    https://wordpress.org/support/view/plugin-reviews/event-tickets/

    PS2: We’d be also grateful if you would give us feedback on your satisfaction with support. Just click on one of the classy looking emojis below. 🙂 If you can spare a few words, that’s even better. Doublethanks!

     

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Getting attendee Meta using aatendee_id’ is closed to new replies.