Components::render_qr_code_template( array $args )
Render the QR code template.
Contents
Parameters
- $args
-
(array) (Required) Array of arguments.
Source
File: src/Tickets_Plus/Emails/Email/Components.php
public function render_qr_code_template( array $args ): void {
if ( ! tribe_is_truthy( $args['include_qr'] ) ) {
return;
}
$args['qr'] = $args['preview'] ?
esc_url( plugins_url( '/event-tickets-plus/src/resources/images/example-qr.png' ) ):
tribe( \Tribe__Tickets_Plus__QR::class )->get_qr_url( $args['ticket'] );
/** @var \Tribe__Tickets_Plus__Template $template */
$template = tribe( 'tickets-plus.template' );
$template->template( 'emails/template-parts/body/ticket/qr-image', $args, true );
}
Changelog
| Version | Description |
|---|---|
| 5.7.0 | Introduced. |