Home › Forums › Calendar Products › Events Calendar PRO › tribe_create_event: event website
- This topic has 7 replies, 3 voices, and was last updated 9 years, 11 months ago by
Leah.
-
AuthorPosts
-
March 13, 2016 at 3:59 am #1088228
Keith
ParticipantHi,
I don’t know if I’m missing something obvious, but I don’t see any field to include the event website in tribe_create_event. How do I go about this?
Regards,
KeithMarch 14, 2016 at 1:37 pm #1088678Nico
MemberHey Keith,
Thanks fro reaching out to us! Interesting question here.
The meta key for the event website field is _EventURL, have you tried passing the value with that key in the function args array?
Please let me know about it,
Best,
NicoMarch 14, 2016 at 1:42 pm #1088704Keith
ParticipantHi Nico,
Thanks for the response. I can give that a try. Just confirm, I can pass _EventURL as an argument to tribe_create_event, and it will accept it as the url for the event. I don’t see any mention of it in the docs.
Regards,
KeithMarch 14, 2016 at 1:47 pm #1088713Keith
ParticipantIf the event url is stored as meta, I guess I need to put it in the meta_input array meta_input .
March 15, 2016 at 1:36 pm #1089326Nico
MemberKeith,
Thanks for following up! I guess my reply was not providing enough information, sorry for that.
I’ve put together a code sample to show you how to add this meta field:
$args = array( 'post_title' => 'XXX', 'post_content' => 'XXX', 'EventURL' => 'http://google.com/' );
tribe_create_event($args);
Give it a try and let me know,
Best,
NicoMarch 16, 2016 at 5:45 am #1089617Keith
ParticipantHi Nico,
Thanks for that. The code is working. The reason for my doubt was that that parameter, EventURL, is not mentioned on the documentation page for tribe_create_event.
Regards,
KeithMarch 16, 2016 at 7:47 am #1089659Nico
MemberHey Keith,
Great to hear you could make it work! You are right, there are various meta parameters that are not documented. I’ll make a ticket in our backlog to update the functions docs. Sorry for the hassle this might caused!
I’ll go ahead and close out this thread, but if you need help with anything else please don’t hesitate to create a new one and we will be happy to assist you.
Best,
NicoMay 26, 2016 at 4:17 pm #1119498Leah
MemberHi there,
I just wanted to pop in here and give you an update. While we weren’t able to get this feature into our upcoming 4.2 release, it is still on our list of ideas to implement in future releases.
We appreciate your patience, and we will be sure to update this thread when we have more news. Thank you for your continued support, and keep an eye out for version 4.2 coming in the next few weeks!
Best,
Leah
and The Events Calendar team -
AuthorPosts
- The topic ‘tribe_create_event: event website’ is closed to new replies.
