• Resolved rckychng

    (@rckychng)


    How would I go about grabbing an attendee’s name and email after they’ve rsvp’d for an event?

    So far I am using the hook for when the ticket is created but not sure if I am using the right functions to grab the data.

    add_action( 'event_tickets_rsvp_ticket_created', 'after_ticket_creation', 10, 4 );
    function after_ticket_creation( $attendee_id, $event_id, $product_id, $order_attendee_id ) {
      $attendee_metadata = tribe_get_event_meta( $attendee_id, '_tribe_tickets_meta', false );
      $attendee_name = $attendee_metadata['_tribe_rsvp_full_name'];
      $attendee_email = $attendee_metadata['_tribe_rsvp_email'];
    }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Grabbing attendee data after ticket creation’ is closed to new replies.