Tribe__Tickets_Plus__Meta__Render::modal_attendee_meta( string $file, string[] $name, Tribe__Tickets__Admin__Views $et_template )

Renders the attendee registration fields in the modal.


Parameters

$file

(string) (Required) Complete path to include the PHP File.

$name

(string[]) (Required) Template name.

$et_template

(Tribe__Tickets__Admin__Views) (Required) Current instance of the Tribe__Template.


Top ↑

Source

File: src/Tribe/Meta/Render.php

	public function modal_attendee_meta( string $file, array $name, Tribe__Tickets__Admin__Views $et_template ): void {
		$template_vars = $et_template->get_local_values();

		if ( empty( $template_vars['ticket_id'] ) || empty( $template_vars['attendee_id'] ) ) {
			return;
		}

		/** @var \Tribe__Tickets_Plus__Meta $meta */
		$meta          = tribe( 'tickets-plus.meta' );
		$attendee_meta = $meta->get_attendee_meta_values( $template_vars['ticket_id'], $template_vars['attendee_id'] );

		$template_vars['attendee_meta'] = $attendee_meta;

		$admin_views = tribe( 'tickets-plus.admin.views' );
		$admin_views->template( 'attendees/modal/attendee/attendee-fields', $template_vars );
	}

Top ↑

Changelog

Changelog
Version Description
5.10.1 Introduced.