{"id":24035,"date":"2012-08-23T22:48:49","date_gmt":"2012-08-24T05:48:49","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/venue-organizer-draft\/"},"modified":"2012-08-23T22:48:49","modified_gmt":"2012-08-24T05:48:49","slug":"venue-organizer-draft","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/venue-organizer-draft\/","title":{"rendered":"Venue &amp; Organizer Draft"},"content":{"rendered":"<p>Not sure if this is a bug:<br \/>\nCurrently using this script https:\/\/github.com\/adispezio\/gf_ecp_frontend_submission\/blob\/master\/functions.php<br \/>\nand everything is working perfectly! The event&#8217;s Venue and Organizer meta and IDs get sent through gravity forms but the only problem is that the new venue and organizer get sent as drafts while the event gets sent as published. Can everything be set to be published right away ? Maybe this is a bug in:<br \/>\n \/\/ don&#8217;t do anything on autosave or auto-draft either or massupdates<br \/>\n\t\/\/if ( wp_is_post_autosave( $postId ) || isset($_GET[&#8216;bulk_edit&#8217;]) )<br \/>\n\tif ( wp_is_post_autosave( $postId ) || $post-&gt;post_status == &#8216;auto-draft&#8217; || isset($_GET[&#8216;bulk_edit&#8217;]) || $_REQUEST[&#8216;action&#8217;] == &#8216;inline-save&#8217; )<br \/>\n\t{<br \/>\n\t\treturn;<br \/>\n\t}<\/p>\n<p>\tif( class_exists(&#8216;TribeEventsAPI&#8217;) ) {<br \/>\n\t\t$_POST[&#8216;Organizer&#8217;] = stripslashes_deep($_POST[&#8216;organizer&#8217;]);<br \/>\n\t\t$_POST[&#8216;Venue&#8217;] = stripslashes_deep($_POST[&#8216;venue&#8217;]);<br \/>\n\t\t$_POST[&#8216;Recurrence&#8217;] = stripslashes_deep($_POST[&#8216;recurrence&#8217;]);<\/p>\n<p>\t\tif( !empty($_POST[&#8216;Venue&#8217;][&#8216;VenueID&#8217;]) )<br \/>\n\t\t$_POST[&#8216;Venue&#8217;] = array(&#8216;VenueID&#8217; =&gt; $_POST[&#8216;Venue&#8217;][&#8216;VenueID&#8217;]);<\/p>\n<p>\t\tif( !empty($_POST[&#8216;Organizer&#8217;][&#8216;OrganizerID&#8217;]) )<br \/>\n\t\t$_POST[&#8216;Organizer&#8217;] = array(&#8216;OrganizerID&#8217; =&gt; $_POST[&#8216;Organizer&#8217;][&#8216;OrganizerID&#8217;]);<\/p>\n<p>\t\tTribeEventsAPI::saveEventMeta($postId, $_POST, $post);<br \/>\n\t\t}<br \/>\n\t}<\/p>\n","protected":false},"template":"","class_list":["post-24035","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>Venue &amp; Organizer Draft -<\/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\/venue-organizer-draft\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Venue &amp; Organizer Draft -\" \/>\n<meta property=\"og:description\" content=\"Not sure if this is a bug: Currently using this script https:\/\/github.com\/adispezio\/gf_ecp_frontend_submission\/blob\/master\/functions.php and everything is working perfectly! The event&#8217;s Venue and Organizer meta and IDs get sent through gravity forms but the only problem is that the new venue and organizer get sent as drafts while the event gets sent as published. Can everything be [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/venue-organizer-draft\/\" \/>\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\/venue-organizer-draft\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/venue-organizer-draft\/\",\"name\":\"Venue &amp; Organizer Draft -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2012-08-24T05:48:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/venue-organizer-draft\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/venue-organizer-draft\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/venue-organizer-draft\/#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\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Venue &amp; Organizer Draft\"}]},{\"@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":"Venue &amp; Organizer Draft -","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\/venue-organizer-draft\/","og_locale":"en_US","og_type":"article","og_title":"Venue &amp; Organizer Draft -","og_description":"Not sure if this is a bug: Currently using this script https:\/\/github.com\/adispezio\/gf_ecp_frontend_submission\/blob\/master\/functions.php and everything is working perfectly! The event&#8217;s Venue and Organizer meta and IDs get sent through gravity forms but the only problem is that the new venue and organizer get sent as drafts while the event gets sent as published. Can everything be [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/venue-organizer-draft\/","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\/venue-organizer-draft\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/venue-organizer-draft\/","name":"Venue &amp; Organizer Draft -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2012-08-24T05:48:49+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/venue-organizer-draft\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/venue-organizer-draft\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/venue-organizer-draft\/#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":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Venue &amp; Organizer Draft"}]},{"@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\/24035","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\/24035\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=24035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}