tribe_create_event() recurring args

Home Forums Calendar Products Events Calendar PRO tribe_create_event() recurring args

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1093190
    Ian Gordon
    Participant

    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!

    #1093681
    Josh
    Participant

    Hey Ian,

    Thanks for reaching out to us!

    I don’t believe we currently have any documentation for this but will dig into this one a little bit further for you to get you a little more information here.

    Thanks!

    #1100116
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘tribe_create_event() recurring args’ is closed to new replies.