getting the venue ID from the event post

Home Forums Calendar Products Events Calendar PRO getting the venue ID from the event post

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1165641
    Paul
    Participant

    I’m doing some custom coding to send an email to the event organizer with event details. I’ve pretty much got it working but I’m having trouble getting the venue ID from the Event post.

    I’ve tried:
    $venue_id = $_POST[‘venue’][‘VenueID’];
    $venue_id = $_POST[‘VenueID’];
    $venue_id = $_POST[‘venue’];
    $venue_id = tribe_get_venue_id( $post_id );

    Can anyone point me in the right direction here. It can’t be this hard!!!

    #1165699
    Brook
    Participant

    Howdy Paul,

    I would love to help you with this.

    Did you know we actually have an extension you can download that does this for you? If you download, install and activate this plugin you will see the option “Carbon Copy the Organizer email when an order for tickets/RSVPs is approved, sharing the full tickets details.” in WP-Admin > Events > Settings > Tickets.

    Plugin: tribe-snippet-email-organizer

    The best way to do what you are doing is no via $_POST, but to do what that snippet does. It attaches it self to a relevant action, in this case ‘event_tickets_rsvp_tickets_generated’, and then uses the $order_id variable that action passes to retrieve the event and any of its details such as the venue. But perhaps just installing the plugin will be enough?

    Did that help?

    Cheers!

    – Brook

    #1174536
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘getting the venue ID from the event post’ is closed to new replies.