Norman McKenzie

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Adding Ticket Name to Attendee Export #1448260
    Norman McKenzie
    Participant

    Thanks for the help,

    I’ve managed to rework that snippet and get the ticket name into export just beside the Order ID.

    if ( function_exists( 'tribe_is_event') ) {
    function tribe_953653_add_phone_to_attendee_list( $value, $item, $column ) {
    if ( 'order_id' != $column ) {
    return $value;
    }
    $ticket = $item['ticket'];
    if ( ! empty( $ticket ) ) {
    return $value . sprintf( ' - %s ', sanitize_text_field( $ticket ) );
    }
    return $value;
    }
    add_filter( 'tribe_events_tickets_attendees_table_column', 'tribe_953653_add_phone_to_attendee_list', 10, 3 );
    }

Viewing 1 post (of 1 total)