{"id":1093190,"date":"2016-03-23T15:53:19","date_gmt":"2016-03-23T22:53:19","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-recurring-args\/"},"modified":"2016-04-08T09:35:05","modified_gmt":"2016-04-08T16:35:05","slug":"tribe_create_event-recurring-args","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-recurring-args\/","title":{"rendered":"tribe_create_event() recurring args"},"content":{"rendered":"<p>I&#8217;m creating a new event from a front-end form, and everything is posting correctly except for the recurring event info. Here&#8217;s the code:<\/p>\n<p><code><br \/>\n\/\/ Create a new post<br \/>\n    $post = array(<br \/>\n      'post_status' =&gt; 'pending',<br \/>\n      'post_title' =&gt; $event_title,<br \/>\n      'post_content' =&gt; $event_content,<br \/>\n      'EventStartDate' =&gt; $startDateFormat,<br \/>\n      'EventEndDate' =&gt; $endDateFormat,<br \/>\n      'EventStartHour' =&gt; $startHour,<br \/>\n      'EventStartMinute' =&gt; $startMin,<br \/>\n      'EventStartMeridian' =&gt; $startMeridian,<br \/>\n      'EventEndHour' =&gt; $endHour,<br \/>\n      'EventEndMinute' =&gt; $endMin,<br \/>\n      'EventEndMeridian' =&gt; $endMeridian,<br \/>\n      'EventURL' =&gt; $link,<br \/>\n      'EventRecurrence' =&gt; array(<br \/>\n        'rules' =&gt; array(<br \/>\n          'type' =&gt; 'Every Month',<br \/>\n          'end-type' =&gt; 'On',<br \/>\n          'end' =&gt; '2016-10-24',<br \/>\n          'end-count' =&gt; '1',<br \/>\n        ),<br \/>\n      ),<br \/>\n      'Venue' =&gt; array(<br \/>\n        'Venue' =&gt; '',<br \/>\n        'Country' =&gt; 'US',<br \/>\n        'Address' =&gt; $address,<br \/>\n        'City' =&gt; $city,<br \/>\n        'State' =&gt; 'CA',<br \/>\n        'Zip' =&gt; $zip,<br \/>\n      ),<br \/>\n    );<br \/>\n\u200b<br \/>\n    $post_id = tribe_create_event($post);<br \/>\n<\/code><\/p>\n<p>I can&#8217;t seem to find ANY documentation about &#8220;EventRecurrence&#8221;. Any help would be much appreciated!<\/p>\n","protected":false},"template":"","class_list":["post-1093190","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_create_event() recurring args -<\/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_create_event-recurring-args\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"tribe_create_event() recurring args -\" \/>\n<meta property=\"og:description\" content=\"I&#8217;m creating a new event from a front-end form, and everything is posting correctly except for the recurring event info. Here&#8217;s the code: \/\/ Create a new post $post = array( &#039;post_status&#039; =&gt; &#039;pending&#039;, &#039;post_title&#039; =&gt; $event_title, &#039;post_content&#039; =&gt; $event_content, &#039;EventStartDate&#039; =&gt; $startDateFormat, &#039;EventEndDate&#039; =&gt; $endDateFormat, &#039;EventStartHour&#039; =&gt; $startHour, &#039;EventStartMinute&#039; =&gt; $startMin, &#039;EventStartMeridian&#039; =&gt; $startMeridian, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-recurring-args\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-04-08T16:35:05+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\/tribe_create_event-recurring-args\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-recurring-args\/\",\"name\":\"tribe_create_event() recurring args -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-03-23T22:53:19+00:00\",\"dateModified\":\"2016-04-08T16:35:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-recurring-args\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-recurring-args\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-recurring-args\/#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\":\"tribe_create_event() recurring args\"}]},{\"@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_create_event() recurring args -","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_create_event-recurring-args\/","og_locale":"en_US","og_type":"article","og_title":"tribe_create_event() recurring args -","og_description":"I&#8217;m creating a new event from a front-end form, and everything is posting correctly except for the recurring event info. Here&#8217;s the code: \/\/ Create a new post $post = array( 'post_status' =&gt; 'pending', 'post_title' =&gt; $event_title, 'post_content' =&gt; $event_content, 'EventStartDate' =&gt; $startDateFormat, 'EventEndDate' =&gt; $endDateFormat, 'EventStartHour' =&gt; $startHour, 'EventStartMinute' =&gt; $startMin, 'EventStartMeridian' =&gt; $startMeridian, [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-recurring-args\/","article_modified_time":"2016-04-08T16:35:05+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\/tribe_create_event-recurring-args\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-recurring-args\/","name":"tribe_create_event() recurring args -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-03-23T22:53:19+00:00","dateModified":"2016-04-08T16:35:05+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-recurring-args\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-recurring-args\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/tribe_create_event-recurring-args\/#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":"tribe_create_event() recurring args"}]},{"@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\/1093190","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":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1093190\/revisions"}],"predecessor-version":[{"id":1093680,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1093190\/revisions\/1093680"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1093190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}