{"id":1200111,"date":"2016-11-30T19:21:11","date_gmt":"2016-12-01T03:21:11","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_has_unlimited_stock_tickets-can-never-be-true\/"},"modified":"2017-03-23T19:41:10","modified_gmt":"2017-03-24T02:41:10","slug":"tribe_events_has_unlimited_stock_tickets-can-never-be-true","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_has_unlimited_stock_tickets-can-never-be-true\/","title":{"rendered":"tribe_events_has_unlimited_stock_tickets can never be true"},"content":{"rendered":"<p>tribe_events_has_unlimited_stock_tickets loops through all associated tickets to an event, then does this check:<br \/>\n<code>Tribe__Tickets__Ticket_Object::UNLIMITED_STOCK === $ticket-&gt;stock()<\/code><\/p>\n<p>This will never be true because <code>Tribe__Tickets__Ticket_Object::UNLIMITED_STOCK<\/code> is <code>&#039;&#039;<\/code> (<code>const UNLIMITED_STOCK = &#039;&#039;;<\/code>), and <code>Tribe__Tickets__Ticket_Object::stock()<\/code> Only allows setting numeric values, and the default value is <code>0<\/code>.<\/p>\n<p>This looks a lot like a bug to me. Ideally, I&#8217;d like to allow unlimited tickets for some events, but currently, that&#8217;s not possible.. I have to set some numeric value.<\/p>\n","protected":false},"template":"","class_list":["post-1200111","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>tribe_events_has_unlimited_stock_tickets can never be true -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_has_unlimited_stock_tickets-can-never-be-true\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"tribe_events_has_unlimited_stock_tickets can never be true -\" \/>\n<meta property=\"og:description\" content=\"tribe_events_has_unlimited_stock_tickets loops through all associated tickets to an event, then does this check: Tribe__Tickets__Ticket_Object::UNLIMITED_STOCK === $ticket-&gt;stock() This will never be true because Tribe__Tickets__Ticket_Object::UNLIMITED_STOCK is &#039;&#039; (const UNLIMITED_STOCK = &#039;&#039;;), and Tribe__Tickets__Ticket_Object::stock() Only allows setting numeric values, and the default value is 0. This looks a lot like a bug to me. Ideally, I&#8217;d like to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_has_unlimited_stock_tickets-can-never-be-true\/\" \/>\n<meta property=\"article:modified_time\" content=\"2017-03-24T02:41:10+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_has_unlimited_stock_tickets-can-never-be-true\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_has_unlimited_stock_tickets-can-never-be-true\/\",\"name\":\"tribe_events_has_unlimited_stock_tickets can never be true -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-12-01T03:21:11+00:00\",\"dateModified\":\"2017-03-24T02:41:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_has_unlimited_stock_tickets-can-never-be-true\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_has_unlimited_stock_tickets-can-never-be-true\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_has_unlimited_stock_tickets-can-never-be-true\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Welcome!\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Pre-Sales Questions\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/pre-sales-questions\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"tribe_events_has_unlimited_stock_tickets can never be true\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"tribe_events_has_unlimited_stock_tickets can never be true -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_has_unlimited_stock_tickets-can-never-be-true\/","og_locale":"en_US","og_type":"article","og_title":"tribe_events_has_unlimited_stock_tickets can never be true -","og_description":"tribe_events_has_unlimited_stock_tickets loops through all associated tickets to an event, then does this check: Tribe__Tickets__Ticket_Object::UNLIMITED_STOCK === $ticket-&gt;stock() This will never be true because Tribe__Tickets__Ticket_Object::UNLIMITED_STOCK is &#039;&#039; (const UNLIMITED_STOCK = &#039;&#039;;), and Tribe__Tickets__Ticket_Object::stock() Only allows setting numeric values, and the default value is 0. This looks a lot like a bug to me. Ideally, I&#8217;d like to [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_has_unlimited_stock_tickets-can-never-be-true\/","article_modified_time":"2017-03-24T02:41:10+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_has_unlimited_stock_tickets-can-never-be-true\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_has_unlimited_stock_tickets-can-never-be-true\/","name":"tribe_events_has_unlimited_stock_tickets can never be true -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-12-01T03:21:11+00:00","dateModified":"2017-03-24T02:41:10+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_has_unlimited_stock_tickets-can-never-be-true\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_has_unlimited_stock_tickets-can-never-be-true\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_events_has_unlimited_stock_tickets-can-never-be-true\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Welcome!","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/"},{"@type":"ListItem","position":4,"name":"Pre-Sales Questions","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/_welcome\/pre-sales-questions\/"},{"@type":"ListItem","position":5,"name":"tribe_events_has_unlimited_stock_tickets can never be true"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1200111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":2,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1200111\/revisions"}],"predecessor-version":[{"id":1259262,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1200111\/revisions\/1259262"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1200111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}