Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<dl class="purchased-tickets">
<?php foreach ( $tickets as $ticket ) : ?>
<a href="<?php echo esc_url( wcbo_get_my_ticket_url( $ticket->ID ) ); ?>">
<?php echo esc_html( $ticket->post_title ); ?>
<?php if ( 'pending' === $ticket->post_status ) : ?>
<span class="pending"><?php _e( 'Pending', 'woocommerce-box-office' ); ?></span>
<?php endif; ?>
<dd class="description">
<?php echo WC_Order_Barcodes()->display_barcode($ticket->ID); ?>
<?php echo wc_box_office_get_ticket_description( $ticket->ID, $fields_format ); ?>
<?php endforeach; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment