Title: Hooks for creating ticket programatically
Last modified: October 28, 2024

---

# Hooks for creating ticket programatically

 *  Resolved [Greg McEwan-Marriott](https://wordpress.org/support/users/gregthebuzz/)
 * (@gregthebuzz)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/hooks-for-creating-ticket-programatically/)
 * I have managed to run a delete ticket/attendee programmatically – are there any
   hooks to reissue a ticket to an order programmatically? (eg the force_regenerate_attendees_for_order
   function)
 * Idea is I want to delete a ticket if the attendee info is updated and then reissue
   a new ticket with a new QR code and security code on the woo order

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/hooks-for-creating-ticket-programatically/#post-18108240)
 * Hi [@gregthebuzz](https://wordpress.org/support/users/gregthebuzz/)
 * Thanks for reaching out.
 * At the moment, we don’t have a documentation on how to reissue tickets to an 
   order programmatically. However, one of my colleagues suggested that you can 
   use the [ORM](https://docs.theeventscalendar.com/apis/orm/) and [Orders Repository](https://github.com/the-events-calendar/event-tickets/blob/1e13bf1548cf3feec21f9c3caca6aacfac4c10ea/src/Tickets/Commerce/Repositories/Order_Repository.php#L56-L72).
 * Also, if you have further concerns, please open a [Support Ticket](https://theeventscalendar.com/support/#contact)
   on our Help Desk since we cannot offer assistance to [<u>premium users</u>](https://wordpress.org/support/guidelines/#the-bad-stuff)
   in this forum.
 * Currently, we do not have detailed documentation available for programmatically
   reissuing tickets associated with an order. However, one of my colleagues has
   recommended exploring the use of the [Object-Relational Mapping (ORM)](https://docs.theeventscalendar.com/apis/orm/)
   in conjunction with the [Orders Repository](https://github.com/the-events-calendar/event-tickets/blob/1e13bf1548cf3feec21f9c3caca6aacfac4c10ea/src/Tickets/Commerce/Repositories/Order_Repository.php#L56-L72).
   This approach may provide the functionality you need.
 * If you have any additional questions or require further assistance, please consider
   submitting a [Support Ticket](https://theeventscalendar.com/support/#contact)
   through our Help Desk since we cannot offer assistance to [<u>premium users</u>](https://wordpress.org/support/guidelines/#the-bad-stuff)
   in this forum.
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/hooks-for-creating-ticket-programatically/#post-18116325)
 * Hi there,
 * We haven’t heard from you in a while, so I’m going to mark this as resolved. 
   Feel free to start a new thread if you have any more questions.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Hooks for creating ticket programatically’ is closed to new replies.

 * ![](https://ps.w.org/event-tickets/assets/icon.svg?rev=2259340)
 * [Event Tickets and Registration](https://wordpress.org/plugins/event-tickets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/event-tickets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/event-tickets/)
 * [Active Topics](https://wordpress.org/support/plugin/event-tickets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/event-tickets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/event-tickets/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Darian](https://wordpress.org/support/users/d0153/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/hooks-for-creating-ticket-programatically/#post-18116325)
 * Status: resolved