• Resolved justin.proxmire

    (@justinproxmire)


    I’m doing some theme & plugin development and, first off, thanks for the amazing plug-in. It’s been a world of help so far!
    I’m running both Event Calendar and Event Tickets v4.0.4 to track RSVPs for simple events.

    I’ve combed through documentation and your functions archive but can’t seem to find functionality for updating ticket counts (only for querying counts).

    Is there any function call I’m missing that may do what I need?

    https://wordpress.org/plugins/event-tickets/

Viewing 1 replies (of 1 total)
  • Brook

    (@brook-tribe)

    Howdy Justin,

    I am happy it is proving useful!

    Our template functions are just for templates, thus are limited to displaying. If you wish to modify tickets you’ll need to dive into the /event-tickets/src/Tribe folder to find the classes that power everything.

    To get a ticket checkout Tribe__Tickets__RSVP::get_ticket() . To save one checkout Tribe__Tickets__RSVP::save_ticket() . The ticket object itself will contain the stock count as well as any other ticket attributes.

    I hope that helps. Cheers!
    – Brook

Viewing 1 replies (of 1 total)
  • The topic ‘Update Ticket Count Function’ is closed to new replies.