Tribe__Tickets_Plus__Commerce__WooCommerce__Global_Stock::increase_global_stock_on_delete( int $ticket_id, int $post_id, int $product_id )

Increase Global Stock on Delete of WooCommerce Attendee


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 WooCommerce


Top ↑

Source

File: src/Tribe/Commerce/WooCommerce/Global_Stock.php

	public function increase_global_stock_on_delete( $ticket_id, $post_id, $product_id ) {

		$ticket  = tribe( 'tickets-plus.commerce.woo' )->get_ticket( $post_id, $product_id );

		$this->maybe_increase_global_stock( $post_id, $product_id, $ticket );
	}

Top ↑

Changelog

Changelog
Version Description
4.10.4 Introduced.