Tribe__Tickets__Tickets_View::render_rsvp_status( string $name, string $selected, int $event_id = null, int $ticket_id = null )

Creates the HTML for the status of the RSVP choice.


Parameters

$name

(string) (Required) The Name of the Field.

$selected

(string) (Required) The Current selected option.

$event_id

(int) (Optional) The Event/Post ID (optional).

Default value: null

$ticket_id

(int) (Optional) The Ticket/RSVP ID (optional).

Default value: null


Top ↑

Return

(void)


Top ↑

Source

File: src/Tribe/Tickets_View.php

	public function render_rsvp_status( $name, $selected, $event_id = null, $ticket_id = null ) {
		$options = $this->get_rsvp_options();
		echo sprintf( '<span>%s</span>', esc_html( $options[ $selected ] ) );
	}