Tribe__Tickets__Ticket_Object::global_stock_cap( int $cap = null )
Sets or gets any cap on sales that might be in effect for this ticket when global stock mode is in effect.
Contents
Parameters
- $cap
-
(int) (Optional)
Default value: null
Return
(int)
Source
File: src/Tribe/Ticket_Object.php
public function global_stock_cap( $cap = null ) {
if ( is_numeric( $cap ) ) {
$this->global_stock_cap = (int) $cap;
}
return (int) $this->global_stock_cap;
}