tribe_create_event: event website

Home Forums Calendar Products Events Calendar PRO tribe_create_event: event website

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1088228
    Keith
    Participant

    Hi,

    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,
    Keith

    #1088678
    Nico
    Member

    Hey 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,
    Nico

    #1088704
    Keith
    Participant

    Hi 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,
    Keith

    #1088713
    Keith
    Participant

    If the event url is stored as meta, I guess I need to put it in the meta_input array meta_input .

    #1089326
    Nico
    Member

    Keith,

    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,
    Nico

    #1089617
    Keith
    Participant

    Hi 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,
    Keith

    #1089659
    Nico
    Member

    Hey 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,
    Nico

    #1119498
    Leah
    Member

    Hi 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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘tribe_create_event: event website’ is closed to new replies.