add_hooks(); } /** * Adds hooks for injecting/overriding aspects of the Attendees Report from Event Tickets * * @since 4.0.1 */ public function add_hooks() { add_action( 'tribe_tickets_attendees_event_details_list_top', array( $this, 'event_details_top' ) ); add_action( 'tribe_tickets_plus_report_event_details_list_top', array( $this, 'event_details_top' ) ); } /** * Injects event meta data into the Attendees report * * @param int $event_id */ public function event_details_top( $event_id ) { $post_type = get_post_type( $event_id ); if ( Tribe__Events__Main::POSTTYPE === $post_type ) { echo '
  • ' . esc_html__( 'Event Date:', 'the-events-calendar' ) . ' ' . tribe_get_start_date( $event_id, false, tribe_get_date_format( true ) ) . '
  • '; } if ( tribe_has_venue( $event_id ) ) { $venue_id = tribe_get_venue_id( $event_id ); echo '
  • ' . tribe_get_venue_label_singular() . ': ' . tribe_get_venue( $event_id ) . '
  • '; } } }