Hooks::filter_email_qr_template( string $html, string $template, string $file, string $slug, string $name, array $data )
Filter email QR template.
Contents
Parameters
- $html
-
(string) (Required) The final HTML
- $template
-
(string) (Required) The Template file, which is a relative path from the Folder we are dealing with
- $file
-
(string) (Required) Complete path to include the PHP File
- $slug
-
(string) (Required) Slug for this template
- $name
-
(string) (Required) Template name
- $data
-
(array) (Required) The Data that will be used on this template
Return
(string)
Source
File: src/Tickets_Plus/Emails/Hooks.php
public function filter_email_qr_template( $html, $template, $file, $slug, $name, $data ): string { if ( ! tec_tickets_emails_is_enabled() ) { return $html; } if ( 'tickets-plus/email-qr' !== $slug ) { return $html; } $data['include_qr'] = true; return tribe( 'tickets-plus.template' )->template( 'v2/emails/template-parts/body/ticket/qr-image', $data, false ); }
Changelog
Version | Description |
---|---|
5.6.10 | Introduced. |