Gateway::render_checkout_template( Tribe__Template $template )
Render the checkout template.
Contents
Parameters
- $template
-
(Tribe__Template) (Required) The template object.
Source
File: src/Tickets/Commerce/Gateways/Free/Gateway.php
public function render_checkout_template( Template $template ): string {
$gateway_key = static::get_key();
$template_path = "gateway/{$gateway_key}/container";
$template_vars = [
'must_login' => ! is_user_logged_in() && tribe( Module::class )->login_required(),
];
return $template->template( $template_path, $template_vars );
}
Changelog
| Version | Description |
|---|---|
| 5.10.0 | Introduced. |