Pdf::add_link_to_sample( array $context )

Add link to sample.


Parameters

$context

(array) (Required) Sample template context.


Top ↑

Return

(array) Modified template context.


Top ↑

Source

File: src/Events_Virtual/Integrations/Plugins/Tickets_Wallet_Plus/Passes/Pdf.php

	public function add_link_to_sample( $context ): array {
		// Check if event exists.
		if ( ! isset( $context['event'] ) ) {
			return $context;
		}

		$context['event']->virtual_ticket_email_link = true;
		$context['event']->virtual_url               = home_url();

		return $context;
	}

Top ↑

Changelog

Changelog
Version Description
1.15.5 Introduced.