Pdf::add_link_to_sample( array $context )
Add link to sample.
Contents
Parameters
- $context
-
(array) (Required) Sample template context.
Return
(array) Modified template context.
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;
}
Changelog
| Version | Description |
|---|---|
| 1.15.5 | Introduced. |