bastienliutkus

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: create a recurring event in PHP #254590
    bastienliutkus
    Participant

    sorry, made mistakes on the pastbin, use this one instead http://pastebin.com/2n6RUgf1

    in reply to: create a recurring event in PHP #254571
    bastienliutkus
    Participant

    hi there thx for answer, here is my pastebin link : http://pastebin.com/VYQLNqZL
    as you see i do a add_action(“save_post” and in my function i create an event, this code is of course in my functions.php in the theme. I suppose i don’t use correct settings. Feel free to modify the pastebin or so. Hope you can answer today so i can continue the work during the week end.

    all the best.

    in reply to: create a recurring event in PHP #252862
    bastienliutkus
    Participant

    changing the “is_recurring” by “false”, true, “true” or 1 didn’t change anything

    in reply to: create a recurring event in PHP #252816
    bastienliutkus
    Participant

    cause i repeat : my goal is to do a RECURRING event each month (for instance) until a date

    in reply to: create a recurring event in PHP #252813
    bastienliutkus
    Participant

    so inspiring me by https://github.com/moderntribe/the-events-calendar/blob/develop/tests/phpunit/Tribe_Event_Creation_Test.php

    i managed to create a non recurring event doing
    $eventSettings = array(
    ….
    “is_recurring” =>”yes”,
    “recurrence[type]” =>”Every+Month”,
    “recurrence[end-type]” =>”On”,
    “recurrence[end]” =>”2014-06-29″,
    “recurrence[end-count]” =>”1″,
    “recurrence[custom-type]” =>”Daily”,
    “recurrence[custom-interval]” =>””,
    “recurrence[custom-type-text]” =>””,
    “recurrence[occurrence-count-text]” =>”month”,
    “recurrence[custom-month-number]” =>”First”,
    “recurrence[custom-month-day]” =>”1″,
    “recurrence[custom-year-month-number]” =>”1″,
    “recurrence[custom-year-month-day]” =>”1″,
    “recurrence[recurrence-description]” =>””,
    );
    $event_id = TribeEventsAPI::createEvent($eventSettings);

    i don’t see where i did it bad, if you could help… Thx

Viewing 5 posts - 1 through 5 (of 5 total)