I’m creating a new event from a front-end form, and everything is posting correctly except for the recurring event info. Here’s the code:
// Create a new post
$post = array(
'post_status' => 'pending',
'post_title' => $event_title,
'post_content' => $event_content,
'EventStartDate' => $startDateFormat,
'EventEndDate' => $endDateFormat,
'EventStartHour' => $startHour,
'EventStartMinute' => $startMin,
'EventStartMeridian' => $startMeridian,
'EventEndHour' => $endHour,
'EventEndMinute' => $endMin,
'EventEndMeridian' => $endMeridian,
'EventURL' => $link,
'EventRecurrence' => array(
'rules' => array(
'type' => 'Every Month',
'end-type' => 'On',
'end' => '2016-10-24',
'end-count' => '1',
),
),
'Venue' => array(
'Venue' => '',
'Country' => 'US',
'Address' => $address,
'City' => $city,
'State' => 'CA',
'Zip' => $zip,
),
);
$post_id = tribe_create_event($post);
I can’t seem to find ANY documentation about “EventRecurrence”. Any help would be much appreciated!