Forum Replies Created
-
AuthorPosts
-
bastienliutkus
Participantsorry, made mistakes on the pastbin, use this one instead http://pastebin.com/2n6RUgf1
bastienliutkus
Participanthi 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.
bastienliutkus
Participantchanging the “is_recurring” by “false”, true, “true” or 1 didn’t change anything
bastienliutkus
Participantcause i repeat : my goal is to do a RECURRING event each month (for instance) until a date
bastienliutkus
Participantso 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
-
AuthorPosts
