Tribe__Tickets__Global_Stock::get_stock_level()
Returns the post’s global stock–the shared maximum available, not the remaining available.
Return
(int)
Source
File: src/Tribe/Global_Stock.php
public function get_stock_level() {
return (int) get_post_meta( $this->post_id, self::GLOBAL_STOCK_LEVEL, true );
}
Changelog
| Version | Description |
|---|---|
| 4.1 | Introduced. |