Hooks::update_stock_after_deletion( int $ticket_id, int $post_id, int $product_id )
Backwards compatibility to update stock after deletion of Ticket.
Contents
Parameters
- $ticket_id
-
(int) (Required) the attendee id being deleted.
- $post_id
-
(int) (Required) the post or event id for the attendee.
- $product_id
-
(int) (Required) the ticket-product id in Tribe Commerce.
Source
File: src/Tickets/Commerce/Hooks.php
public function update_stock_after_deletion( $ticket_id, $post_id, $product_id ) {
$this->container->make( Ticket::class )->update_stock_after_deletion( $ticket_id, $post_id, $product_id );
}
Changelog
| Version | Description |
|---|---|
| 5.1.9 | Introduced. |