Hooks::render_modify_attendees_link( string $file, array $name, Tribe__Template $et_template )

Render the modify attendees link.


Parameters #

$file

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

$name

(array) (Required) Template name.

$et_template

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


Top ↑

Source #

File: src/Tickets_Plus/Commerce/Attendee_Registration/Hooks.php

	public function render_modify_attendees_link( $file, $name, $et_template ) {
		/** @var \Tribe__Tickets_Plus__Template $template */
		$template = tribe( 'tickets-plus.template' );

		$url = home_url( '/' . tribe( 'tickets.attendee_registration' )->get_slug() );
		$url = add_query_arg( tribe_tickets_get_provider_query_slug(), \TEC\Tickets\Commerce::PROVIDER, $url );
		$url = add_query_arg( Cart::$cookie_query_arg, tribe_get_request_var( Cart::$cookie_query_arg ), $url );

		$args                              = $et_template->get_local_values();
		$args['attendee_registration_url'] = $url;

		$template->add_template_globals( $args );

		$template->template( 'v2/commerce/checkout/header/links/modify-attendees' );
	}

Top ↑

Changelog #

Changelog
Version Description
5.3.0 Introduced.