Attendance_Totals::print_totals()
Prints an HTML (unordered) list of attendance totals.
Source
File: src/Tickets/Commerce/Reports/Attendance_Totals.php
public function print_totals() {
$args = [
'total_sold_label' => esc_html( sprintf( _x( 'Total %s:', 'attendee summary', 'event-tickets' ), tribe_get_ticket_label_plural( 'total_sold_label' ) ) ),
'total_complete_label' => _x( 'Complete:', 'attendee summary', 'event-tickets' ),
'total_cancelled_label' => _x( 'Cancelled:', 'attendee summary', 'event-tickets' ),
'total_sold' => $this->get_total_sold(),
'total_complete' => $this->get_total_complete(),
'total_cancelled' => $this->get_total_cancelled(),
'total_refunded' => $this->get_total_refunded(),
'total_sold_tooltip' => $this->get_total_sold_tooltip(),
'total_completed_tooltip' => $this->get_total_completed_tooltip(),
'total_cancelled_tooltip' => $this->get_total_cancelled_tooltip(),
'total_refunded_tooltip' => $this->get_total_refunded_tooltip(),
];
tribe( 'tickets.admin.views' )->template( 'attendees-totals-list', $args, true );
}
Changelog
| Version | Description |
|---|---|
| 4.7 | |
| 4.10.9 | Introduced. |