{"id":123963,"date":"2014-03-27T14:45:39","date_gmt":"2014-03-27T21:45:39","guid":{"rendered":"https:\/\/tri.be\/support\/forums\/topic\/add-new-api-function-to-get-venue-website-url\/"},"modified":"2014-04-14T12:38:03","modified_gmt":"2014-04-14T19:38:03","slug":"add-new-api-function-to-get-venue-website-url","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-new-api-function-to-get-venue-website-url\/","title":{"rendered":"Add New API Function to Get Venue Website URL?"},"content":{"rendered":"<p>Can we get a <strong>tribe_get_venue_website_url()<\/strong> function added as a template tag or API function?<\/p>\n<p>Here&#8217;s what exists now:<\/p>\n<pre><code>tribe_get_event_website_url()\ntribe_get_event_website_link()\ntribe_get_venue_website_link()\ntribe_get_organizer_website_url()\ntribe_get_organizer_website_link()<\/code><\/pre>\n<p>You&#8217;ll see <strong>tribe_get_venue_website_url()<\/strong> doesn&#8217;t [yet] exist.<\/p>\n<p>There are public API functions for getting a Website\/Link for Events and Organizers, but there&#8217;s only a function for getting a Venue&#8217;s website HTML link, not just the URL.<\/p>\n<p>These functions can be found in the following directory: <strong>\/wp-content\/plugins\/the-events-calendar\/public\/template-tags<\/strong>.<\/p>\n<p>For now, I&#8217;m just using the following function to get the value directly: <code>get_post_meta( $post-&gt;ID, &#039;_VenueURL&#039;, true );<\/code><\/p>\n","protected":false},"template":"","class_list":["post-123963","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>Add New API Function to Get Venue Website URL? -<\/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\/add-new-api-function-to-get-venue-website-url\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add New API Function to Get Venue Website URL? -\" \/>\n<meta property=\"og:description\" content=\"Can we get a tribe_get_venue_website_url() function added as a template tag or API function? Here&#8217;s what exists now: tribe_get_event_website_url() tribe_get_event_website_link() tribe_get_venue_website_link() tribe_get_organizer_website_url() tribe_get_organizer_website_link() You&#8217;ll see tribe_get_venue_website_url() doesn&#8217;t [yet] exist. There are public API functions for getting a Website\/Link for Events and Organizers, but there&#8217;s only a function for getting a Venue&#8217;s website HTML link, not [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-new-api-function-to-get-venue-website-url\/\" \/>\n<meta property=\"article:modified_time\" content=\"2014-04-14T19:38:03+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-new-api-function-to-get-venue-website-url\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-new-api-function-to-get-venue-website-url\/\",\"name\":\"Add New API Function to Get Venue Website URL? -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2014-03-27T21:45:39+00:00\",\"dateModified\":\"2014-04-14T19:38:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-new-api-function-to-get-venue-website-url\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-new-api-function-to-get-venue-website-url\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-new-api-function-to-get-venue-website-url\/#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\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Add New API Function to Get Venue Website URL?\"}]},{\"@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":"Add New API Function to Get Venue Website URL? -","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\/add-new-api-function-to-get-venue-website-url\/","og_locale":"en_US","og_type":"article","og_title":"Add New API Function to Get Venue Website URL? -","og_description":"Can we get a tribe_get_venue_website_url() function added as a template tag or API function? Here&#8217;s what exists now: tribe_get_event_website_url() tribe_get_event_website_link() tribe_get_venue_website_link() tribe_get_organizer_website_url() tribe_get_organizer_website_link() You&#8217;ll see tribe_get_venue_website_url() doesn&#8217;t [yet] exist. There are public API functions for getting a Website\/Link for Events and Organizers, but there&#8217;s only a function for getting a Venue&#8217;s website HTML link, not [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-new-api-function-to-get-venue-website-url\/","article_modified_time":"2014-04-14T19:38:03+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-new-api-function-to-get-venue-website-url\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-new-api-function-to-get-venue-website-url\/","name":"Add New API Function to Get Venue Website URL? -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2014-03-27T21:45:39+00:00","dateModified":"2014-04-14T19:38:03+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-new-api-function-to-get-venue-website-url\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-new-api-function-to-get-venue-website-url\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/add-new-api-function-to-get-venue-website-url\/#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":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Add New API Function to Get Venue Website URL?"}]},{"@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\/123963","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":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/123963\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=123963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}