Module::attendee_decreases_inventory( array $attendee )
Whether a specific attendee is valid toward inventory decrease or not.
Contents
By default only attendees generated as part of a Completed order will count toward an inventory decrease but, if the option to reserve stock for Pending Orders is activated, then those attendees generated as part of a Pending Order will, for a limited time after the order creation, cause the inventory to be decreased.
Parameters
- $attendee
-
(array) (Required)
Return
(bool)
Source
File: src/Tickets/Commerce/Module.php
public function attendee_decreases_inventory( array $attendee ) {
return tribe( Attendee::class )->decreases_inventory( $attendee );
}
Changelog
| Version | Description |
|---|---|
| 5.1.9 | Introduced. |